IntCurvesFace
OCCT package IntCurvesFace: IntCurvesFace_Intersector, IntCurvesFace_ShapeIntersector.
IntCurvesFace_Intersector
Constructors(1)
- constructor(F: TopoDS_Face, aTol: number, aRestr?: boolean, UseBToler?: boolean): IntCurvesFace_Intersector
Load a Face.
The Tolerance <Tol> is used to determine if the first point of the segment is near the face. In that case, the parameter of the intersection point on the line can be a negative value (greater than -Tol). If aRestr = true UV bounding box of face is used to restrict it's underlined surface, otherwise surface is not restricted. If UseBToler = false then the 2d-point of intersection is classified with null-tolerance (relative to face); otherwise it's using maximum between input tolerance(aTol) and tolerances of face bounds (edges).Parameters (4)FaTolaRestrUseBToler
Static methods(2)
- get_type_name(): string
Instance methods(18)
Perform the intersection between the segment L and the loaded face.
PInf is the smallest parameter on the line PSup is the highest parameter on the line
For an infinite line PInf and PSup can be +/- RealLast.Parameters (3)LPInfPSup
- Perform(HCu: Adaptor3d_Curve, PInf: number, PSup: number): void
same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF.
Parameters (3)HCuPInfPSup
Return the surface type.
- IsDone(): boolean
True is returned when the intersection have been computed.
- NbPnt(): number
- UParameter(I: number): number
Returns the U parameter of the ith intersection point on the surface.
Parameters (1)I
- VParameter(I: number): number
Returns the V parameter of the ith intersection point on the surface.
Parameters (1)I
- WParameter(I: number): number
Returns the parameter of the ith intersection point on the line.
Parameters (1)I
Returns the geometric point of the ith intersection between the line and the surface.
Parameters (1)I
- Transition(I: number): IntCurveSurface_TransitionOnCurve
Returns the ith transition of the line on the surface.
Parameters (1)I
- State(I: number): TopAbs_State
Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).
Parameters (1)I
- IsParallel(): boolean
Returns true if curve is parallel or belongs face surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...).
- Face(): TopoDS_Face
Returns the significant face used to determine the intersection.
- ClassifyUVPoint(Puv: gp_Pnt2d): TopAbs_StateParameters (1)
Puv
- SetUseBoundToler(UseBToler: boolean): void
Sets the boundary tolerance flag.
Parameters (1)UseBToler
- GetUseBoundToler(): boolean
Returns the boundary tolerance flag.
IntCurvesFace_ShapeIntersector
Constructors(1)
Instance methods(14)
- Load(Sh: TopoDS_Shape, Tol: number): voidParameters (2)
ShTol
Perform the intersection between the segment L and the loaded shape.
PInf is the smallest parameter on the line PSup is the highest parameter on the line
For an infinite line PInf and PSup can be +/- RealLast.Parameters (3)LPInfPSup
- Perform(HCu: Adaptor3d_Curve, PInf: number, PSup: number): void
same method for a HCurve from Adaptor3d. PInf an PSup can also be -INF and +INF.
Parameters (3)HCuPInfPSup
- PerformNearest(L: gp_Lin, PInf: number, PSup: number): void
Perform the intersection between the segment L and the loaded shape.
PInf is the smallest parameter on the line PSup is the highest parameter on the line
For an infinite line PInf and PSup can be +/- RealLast.Parameters (3)LPInfPSup
- IsDone(): boolean
True when the intersection has been computed.
- NbPnt(): number
Returns the number of the intersection points.
- UParameter(I: number): number
Returns the U parameter of the ith intersection point on the surface.
Parameters (1)I
- VParameter(I: number): number
Returns the V parameter of the ith intersection point on the surface.
Parameters (1)I
- WParameter(I: number): number
Returns the parameter of the ith intersection point on the line.
Parameters (1)I
Returns the geometric point of the ith intersection between the line and the surface.
Parameters (1)I
- Transition(I: number): IntCurveSurface_TransitionOnCurve
Returns the ith transition of the line on the surface.
Parameters (1)I
- State(I: number): TopAbs_State
Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).
Parameters (1)I
- Face(I: number): TopoDS_Face
Returns the significant face used to determine the intersection.
Parameters (1)I
- SortResult(): void
Internal method. Sort the result on the Curve parameter.