OCC.Core.IntCurvesFace module¶
IntCurvesFace module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intcurvesface.html
-
class
IntCurvesFace_Intersector
(*args)¶ Bases:
object
- 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 maximium between input tolerance(aTol) and tolerances of face bounds (edges).
- param F
- type F
TopoDS_Face
- param aTol
- type aTol
float
- param aRestr
default value is Standard_True
- type aRestr
bool
- param UseBToler
default value is Standard_True
- type UseBToler
bool
- rtype
None
-
ClassifyUVPoint
()¶ - Parameters
Puv –
- type Puv
gp_Pnt2d
- rtype
TopAbs_State
-
Face
()¶ - Returns the significant face used to determine the intersection.
- rtype
TopoDS_Face
-
GetUseBoundToler
()¶ - Returns the boundary tolerance flag
- rtype
bool
-
IsDone
()¶ - True is returned when the intersection have been computed.
- rtype
bool
-
IsParallel
()¶ - 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, …)
- rtype
bool
-
Perform
()¶ - Perform the intersection between the segment L and the loaded face. //! PInf is the smallest parameter on the line PSup is the highest parmaeter on the line //! For an infinite line PInf and PSup can be +/- RealLast.
- param L
- type L
gp_Lin
- param PInf
- type PInf
float
- param PSup
- type PSup
float
- rtype
None* same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF.
- param HCu
- type HCu
Adaptor3d_HCurve
- param PInf
- type PInf
float
- param PSup
- type PSup
float
- rtype
None
-
Pnt
()¶ - Returns the geometric point of the ith intersection between the line and the surface.
- param I
- type I
int
- rtype
gp_Pnt
-
SetUseBoundToler
()¶ - Sets the boundary tolerance flag
- param UseBToler
- type UseBToler
bool
- rtype
None
-
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 boudary of the face).
- param I
- type I
int
- rtype
TopAbs_State
-
SurfaceType
()¶ - Return the surface type
- rtype
GeomAbs_SurfaceType
-
Transition
()¶ - Returns the ith transition of the line on the surface.
- param I
- type I
int
- rtype
IntCurveSurface_TransitionOnCurve
-
UParameter
()¶ - Returns the U parameter of the ith intersection point on the surface.
- param I
- type I
int
- rtype
float
-
VParameter
()¶ - Returns the V parameter of the ith intersection point on the surface.
- param I
- type I
int
- rtype
float
-
WParameter
()¶ - Returns the parameter of the ith intersection point on the line.
- param I
- type I
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
IntCurvesFace_ShapeIntersector
(*args)¶ Bases:
object
- Return type
-
Face
()¶ - Returns the significant face used to determine the intersection.
- param I
- type I
int
- rtype
TopoDS_Face
-
IsDone
()¶ - True is returned when the intersection have been computed.
- rtype
bool
-
Load
()¶ - Parameters
Sh –
- type Sh
TopoDS_Shape
- param Tol
- type Tol
float
- rtype
None
-
Perform
()¶ - Perform the intersection between the segment L and the loaded shape. //! PInf is the smallest parameter on the line PSup is the highest parammter on the line //! For an infinite line PInf and PSup can be +/- RealLast.
- param L
- type L
gp_Lin
- param PInf
- type PInf
float
- param PSup
- type PSup
float
- rtype
None* same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF.
- param HCu
- type HCu
Adaptor3d_HCurve
- param PInf
- type PInf
float
- param PSup
- type PSup
float
- rtype
None
-
PerformNearest
()¶ - Perform the intersection between the segment L and the loaded shape. //! PInf is the smallest parameter on the line PSup is the highest parammter on the line //! For an infinite line PInf and PSup can be +/- RealLast.
- param L
- type L
gp_Lin
- param PInf
- type PInf
float
- param PSup
- type PSup
float
- rtype
None
-
Pnt
()¶ - Returns the geometric point of the ith intersection between the line and the surface.
- param I
- type I
int
- rtype
gp_Pnt
-
SortResult
()¶ - Internal method. Sort the result on the Curve parameter.
- rtype
None
-
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 boudary of the face).
- param I
- type I
int
- rtype
TopAbs_State
-
Transition
()¶ - Returns the ith transition of the line on the surface.
- param I
- type I
int
- rtype
IntCurveSurface_TransitionOnCurve
-
UParameter
()¶ - Returns the U parameter of the ith intersection point on the surface.
- param I
- type I
int
- rtype
float
-
VParameter
()¶ - Returns the V parameter of the ith intersection point on the surface.
- param I
- type I
int
- rtype
float
-
WParameter
()¶ - Returns the parameter of the ith intersection point on the line.
- param I
- type I
int
- rtype
float
-
property
thisown
¶ The membership flag