OCC.BRepClass3d module¶
-
class
BRepClass3d_DataMapIteratorOfMapOfInter
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (BRepClass3d_MapOfInter &) – Return type: None -
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: Standard_Address
-
thisown
¶ The membership flag
-
-
class
BRepClass3d_DataMapNodeOfMapOfInter
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K (TopoDS_Shape &) –
- I (Standard_Address &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: Standard_Address
-
thisown
¶ The membership flag
-
class
BRepClass3d_Intersector3d
(*args)¶ Bases:
object
- Empty constructor.
Return type: None -
Face
()¶ - Returns the significant face used to determine the intersection.
Return type: TopoDS_Face
-
Perform
()¶ - Perform the intersection between the segment L(0) … L(Prm) and the Shape <Sh>. //! Only the point with the smallest parameter on the line is returned. //! 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).
Parameters: Return type:
-
Pnt
()¶ - Returns the geometric point of the intersection between the line and the surface.
Return type: gp_Pnt
-
State
()¶ - Returns the 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).
Return type: TopAbs_State
-
Transition
()¶ - Returns the transition of the line on the surface.
Return type: IntCurveSurface_TransitionOnCurve
-
thisown
¶ The membership flag
-
class
BRepClass3d_MapOfInter
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: NbBuckets (int) – default value is 1 Return type: None -
Assign
()¶ Parameters: Other (BRepClass3d_MapOfInter &) – Return type: BRepClass3d_MapOfInter
-
ChangeFind
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
ChangeFind1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set
()¶ Parameters: Other (BRepClass3d_MapOfInter &) – Return type: BRepClass3d_MapOfInter
-
thisown
¶ The membership flag
-
-
class
BRepClass3d_SClassifier
(*args)¶ Bases:
object
- Empty constructor.
Return type: None - Constructor to classify the point P with the tolerance Tol on the solid S.
Parameters: Return type: -
Face
()¶ - Returns the face used to determine the classification. When the state is ON, this is the face containing the point. //! When Rejected() returns True, Face() has no signification.
Return type: TopoDS_Face
-
Perform
()¶ - Classify the point P with the tolerance Tol on the solid S.
Parameters: Return type:
-
PerformInfinitePoint
()¶ - Classify an infinite point with the tolerance Tol on the solid S.
Parameters: - S (BRepClass3d_SolidExplorer &) –
- Tol (float) –
Return type:
-
Rejected
()¶ - Returns True if the classification has been computed by rejection. The State is then OUT.
Return type: bool
-
State
()¶ - Returns the result of the classification.
Return type: TopAbs_State
-
thisown
¶ The membership flag
-
class
BRepClass3d_SolidClassifier
(*args)¶ Bases:
OCC.BRepClass3d.BRepClass3d_SClassifier
- empty constructor
Return type: None - Constructor from a Shape.
Parameters: S (TopoDS_Shape &) – Return type: None - Constructor to classify the point P with the tolerance Tol on the solid S.
Parameters: Return type: -
Perform
()¶ - Classify the point P with the tolerance Tol on the solid S.
Parameters: Return type:
-
PerformInfinitePoint
()¶ - Classify an infinite point with the tolerance Tol on the solid S. Useful for compute the orientation of a solid.
Parameters: Tol (float) – Return type: None
-
thisown
¶ The membership flag
-
class
BRepClass3d_SolidExplorer
(*args)¶ Bases:
object
Return type: None - Raise if called.
Parameters: - Oth (BRepClass3d_SolidExplorer &) –
- S (TopoDS_Shape &) –
Return type: Return type: -
CurrentFace
()¶ - Returns the current face.
Return type: TopoDS_Face
-
CurrentShell
()¶ - Returns the current shell.
Return type: TopoDS_Shell
-
Delete
()¶ Return type: void
-
DumpSegment
()¶ Parameters: Return type: void
-
static
FindAPointInTheFace
()¶ - compute a point P in the face F. Param is a Real in ]0,1[ and is used to initialise the algorithm. For different values , different points are returned.
Parameters: Return type: Return type: Return type: Return type: Return type: Return type:
-
GetFaceSegmentIndex
()¶ - Returns the index of face for which last segment is calculated.
Return type: int
-
Intersector
()¶ Parameters: F (TopoDS_Face &) – Return type: IntCurvesFace_Intersector
-
OtherSegment
()¶ - Returns in <L>, <Par> a segment having at least one intersection with the shape boundary to compute intersections. //! The First Call to this method returns a line which point to a point of the first face of the shape. The Second Call provide a line to the second face and so on.
Parameters: Return type:
-
PointInTheFace
()¶ Parameters: Return type: Return type: - <Index> gives point index to search from and returns point index of succeseful search
Parameters: Return type:
-
Reject
()¶ - Should return True if P outside of bounding vol. of the shape
Parameters: P (gp_Pnt) – Return type: bool
-
Segment
()¶ - Returns in <L>, <Par> a segment having at least one intersection with the shape boundary to compute intersections.
Parameters: Return type:
-
thisown
¶ The membership flag
-
BRepClass3d_SolidExplorer_FindAPointInTheFace
()¶ - compute a point P in the face F. Param is a Real in ]0,1[ and is used to initialise the algorithm. For different values , different points are returned.
Parameters: Return type: Return type: Return type: Return type: Return type: Return type:
-
class
BRepClass3d_SolidPassiveClassifier
(*args)¶ Bases:
object
Return type: None -
Intersector
()¶ Return type: BRepClass3d_Intersector3d
-
State
()¶ Return type: TopAbs_State
-
thisown
¶ The membership flag
-
-
class
Handle_BRepClass3d_DataMapNodeOfMapOfInter
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
brepclass3d
¶ Bases:
object
-
static
OuterShell
()¶ - Returns the outer most shell of <S>. Returns a Null shell if <S> has no outer shell. If <S> has only one shell, then it will return, without checking orientation.
Parameters: S (TopoDS_Solid &) – Return type: TopoDS_Shell
-
thisown
¶ The membership flag
-
static
-
brepclass3d_OuterShell
()¶ - Returns the outer most shell of <S>. Returns a Null shell if <S> has no outer shell. If <S> has only one shell, then it will return, without checking orientation.
Parameters: S (TopoDS_Solid &) – Return type: TopoDS_Shell
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases