BRepIntCurveSurface
OCCT package BRepIntCurveSurface: BRepIntCurveSurface_Inter.
BRepIntCurveSurface_Inter
Computes the intersection between a face and a curve. To intersect one curve with shape method Init(Shape, curve, tTol) should be used. To intersect a few curves with specified shape it is necessary to load shape one time using method Load(shape, tol) and find intersection points for each curve using method Init(curve). For iteration by intersection points method More() and Next() should be used.
Example: Inter.Load(shape, tol); for( i =1; i <= nbCurves;i++) { Inter.Init(curve); for( ;Inter.More(); Inter.Next()) { ....... } }
Constructors(1)
Empty constructor;.
Instance methods(12)
- Init(theShape: TopoDS_Shape, theCurve: GeomAdaptor_Curve, theTol: number): void
Load the Shape, the curve and initialize the tolerance used for the classification.
Parameters (3)theShapetheCurvetheTol
- Init(theShape: TopoDS_Shape, theLine: gp_Lin, theTol: number): void
Load the Shape, the curve and initialize the tolerance used for the classification.
Parameters (3)theShapetheLinetheTol
- Load(theShape: TopoDS_Shape, theTol: number): void
Load the Shape, and initialize the tolerance used for the classification.
Parameters (2)theShapetheTol
- More(): boolean
returns True if there is a current face.
- Next(): void
Sets the next intersection point to check.
returns the current geometric Point
- U(): number
returns the U parameter of the current point on the current face.
- V(): number
returns the V parameter of the current point on the current face.
- W(): number
returns the parameter of the current point on the curve.
returns the current state (IN or ON)
returns the transition of the line on the surface (IN or OUT or UNKNOWN)
- Face(): TopoDS_Face
returns the current face.