コード例 #1
0
ファイル: SubSurface.cpp プロジェクト: chrismullins/cgma
//-------------------------------------------------------------------------
// Purpose       : closest point trimmed
//
// Special Notes : 
//
// Creator       : Jason Kraftcheck
//
// Creation Date : 03/28/03
//-------------------------------------------------------------------------
void SubSurface::closest_point_trimmed( CubitVector from, CubitVector& result )
{
  PartitionCurve* curve = 0;
  if ( point_containment( from, curve ) == CUBIT_PNT_INSIDE )
    partitioned_surface()->closest_point( from, &result );
  else
    curve->closest_point_trimmed( from, result );
}
コード例 #2
0
ファイル: OCCSurface.cpp プロジェクト: tenpercent/cp-sandbox
CubitPointContainment OCCSurface::point_containment( double u_param, 
                                                     double v_param )
{
  CubitVector point = position_from_u_v(u_param, v_param);
  return point_containment(point);
}