OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKGeomAlgo
GeomAPI


GeomAPI_IntCS Class Reference

This class implements methods for
computing intersection points and segments between a
.

#include <GeomAPI_IntCS.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GeomAPI_IntCS ()
 Creates an empty object. Use the
function Perform for further initialization of the algorithm by
the curve and the surface.
.
Standard_EXPORT GeomAPI_IntCS (const Handle(Geom_Curve)&C, const Handle(Geom_Surface)&S)
 Computes the intersections between
the curve C and the surface S.
Warning
Use function IsDone to verify that the intersections are computed successfully.
.
Standard_EXPORT void Perform (const Handle(Geom_Curve)&C, const Handle(Geom_Surface)&S)
 This function Initializes an algorithm with the curve C and the
surface S and computes the intersections between C and S.
Warning
Use function IsDone to verify that the intersections are computed successfully.
.
Standard_EXPORT Standard_Boolean IsDone () const
 Returns true if the intersections are successfully computed.
.
Standard_EXPORT Standard_Integer NbPoints () const
 Returns the number of Intersection Points
if IsDone returns True.
else NotDone is raised.
.
Standard_EXPORT const gp_Pnt & Point (const Standard_Integer Index) const
 Returns the Intersection Point of range <index>in case of cross intersection.
Raises NotDone if the computation has failed or if
the computation has not been done
raises OutOfRange if Index is not in the range <1..NbPoints>
.
Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter &U, Quantity_Parameter &V, Quantity_Parameter &W) const
 Returns parameter W on the curve
and (parameters U,V) on the surface of the computed intersection point
of index Index in case of cross intersection.
Exceptions
StdFail_NotDone if intersection algorithm fails or is not initialized.
Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where
NbPoints is the number of computed intersection points.
.
Standard_EXPORT Standard_Integer NbSegments () const
 Returns the number of computed
intersection segments in case of tangential intersection.
Exceptions
StdFail_NotDone if the intersection algorithm fails or is not initialized.
.
Standard_EXPORT Handle_Geom_Curve Segment (const Standard_Integer Index) const
 Returns the computed intersection
segment of index Index in case of tangential intersection.
Intersection segment is a portion of the initial curve tangent to surface.
Exceptions
StdFail_NotDone if intersection algorithm fails or is not initialized.
Standard_OutOfRange if Index is not in the range [ 1,NbSegments ],
where NbSegments is the number of computed intersection segments.
.
Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter &U1, Quantity_Parameter &V1, Quantity_Parameter &U2, Quantity_Parameter &V2) const
 Returns the parameters of the first (U1,V1) and the last (U2,V2) points
of curve's segment on the surface in case of tangential intersection.
Index is the number of computed intersection segments.
Exceptions
StdFail_NotDone if intersection algorithm fails or is not initialized.
Standard_OutOfRange if Index is not in the range [ 1,NbSegments ],
where NbSegments is the number of computed intersection segments.
.

Private Attributes

Handle_Geom_Curve myCurve
IntCurveSurface_HInter myIntCS


Constructor & Destructor Documentation

Standard_EXPORT GeomAPI_IntCS::GeomAPI_IntCS  ) 
 

Standard_EXPORT GeomAPI_IntCS::GeomAPI_IntCS const Handle(Geom_Curve)&  C,
const Handle(Geom_Surface)&  S
 


Member Function Documentation

Standard_EXPORT Standard_Boolean GeomAPI_IntCS::IsDone  )  const
 

Standard_EXPORT Standard_Integer GeomAPI_IntCS::NbPoints  )  const
 

Standard_EXPORT Standard_Integer GeomAPI_IntCS::NbSegments  )  const
 

void GeomAPI_IntCS::operator delete void *  anAddress  )  [inline]
 

void* GeomAPI_IntCS::operator new size_t  size  )  [inline]
 

void* GeomAPI_IntCS::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT void GeomAPI_IntCS::Parameters const Standard_Integer  Index,
Quantity_Parameter &  U1,
Quantity_Parameter &  V1,
Quantity_Parameter &  U2,
Quantity_Parameter &  V2
const
 

Standard_EXPORT void GeomAPI_IntCS::Parameters const Standard_Integer  Index,
Quantity_Parameter &  U,
Quantity_Parameter &  V,
Quantity_Parameter &  W
const
 

Standard_EXPORT void GeomAPI_IntCS::Perform const Handle(Geom_Curve)&  C,
const Handle(Geom_Surface)&  S
 

Standard_EXPORT const gp_Pnt& GeomAPI_IntCS::Point const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom_Curve GeomAPI_IntCS::Segment const Standard_Integer  Index  )  const
 


Field Documentation

Handle_Geom_Curve GeomAPI_IntCS::myCurve [private]
 

IntCurveSurface_HInter GeomAPI_IntCS::myIntCS [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:41:49 2008 for OpenCASCADE by  doxygen 1.4.1