OCC.BRepTools module¶
-Level : Public.All methods of all classes will be public.The BRepTools package provides utilities for BRepdata structures.* WireExplorer : A tool to explore the topology ofa wire in the order of the edges.* ShapeSet : Tools used for dumping, writing andreading.* UVBounds : Methods to compute the limits of theboundary of a face, a wire or an edge in theparametric space of a face.* Update : Methods to call when a topology hasbeen created to compute all missing data.* UpdateFaceUVPoints : Method to update the UVpoints stored with the edges on a face. Thismethod ensure that connected edges have the sameUV point on their common extremity.* Compare : Method to compare two vertices.* Compare : Method to compare two edges.* OuterWire : A method to find the outer wire of aface.* Map3DEdges : A method to map all the 3D Edges ofa Shape.* Dump : A method to dump a BRep object.
-
class
BRepTools_DataMapIteratorOfMapOfVertexPnt2d
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (BRepTools_MapOfVertexPnt2d &) – Return type: None -
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TColgp_SequenceOfPnt2d
-
thisown
¶ The membership flag
-
-
class
BRepTools_DataMapNodeOfMapOfVertexPnt2d
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K (TopoDS_Shape &) –
- I (TColgp_SequenceOfPnt2d) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TColgp_SequenceOfPnt2d
-
thisown
¶ The membership flag
-
class
BRepTools_GTrsfModification
(*args)¶ Bases:
OCC.BRepTools.BRepTools_Modification
Parameters: T (gp_GTrsf) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
BRepTools_MapOfVertexPnt2d
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: NbBuckets (int) – default value is 1 Return type: None -
Assign
()¶ Parameters: Other (BRepTools_MapOfVertexPnt2d &) – Return type: BRepTools_MapOfVertexPnt2d
-
Bind
()¶ Parameters: - K (TopoDS_Shape &) –
- I (TColgp_SequenceOfPnt2d) –
Return type:
-
ChangeFind
()¶ Parameters: K (TopoDS_Shape &) – Return type: TColgp_SequenceOfPnt2d
-
ChangeFind1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find
()¶ Parameters: K (TopoDS_Shape &) – Return type: TColgp_SequenceOfPnt2d
-
Find1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set
()¶ Parameters: Other (BRepTools_MapOfVertexPnt2d &) – Return type: BRepTools_MapOfVertexPnt2d
-
thisown
¶ The membership flag
-
-
class
BRepTools_Modification
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
Continuity
()¶ - Returns the continuity of <NewE> between <NewF1> and <NewF2>. <NewE> is the new edge created from <E>. <NewF1> (resp. <NewF2>) is the new face created from <F1> (resp. <F2>).
Parameters: - E (TopoDS_Edge &) –
- F1 (TopoDS_Face &) –
- F2 (TopoDS_Face &) –
- NewE (TopoDS_Edge &) –
- NewF1 (TopoDS_Face &) –
- NewF2 (TopoDS_Face &) –
Return type: GeomAbs_Shape
-
GetHandle
()¶
-
NewCurve
()¶ - Returns true if the edge, E, has been modified. If the edge has been modified: - C is the new geometry associated with the edge, - L is its new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant.
Parameters: - E (TopoDS_Edge &) –
- C (Handle_Geom_Curve &) –
- L (TopLoc_Location &) –
- Tol (float &) –
Return type:
-
NewCurve2d
()¶ - Returns true if the edge, E, has a new curve on surface on the face, F. If a new curve exists: - C is the new geometry of the edge, - L is the new location, and - Tol is the new tolerance. NewE is the new edge created from E, and NewF is the new face created from F. If there is no new curve on the face, this function returns false, and the values of C, L and Tol are not significant.
Parameters: - E (TopoDS_Edge &) –
- F (TopoDS_Face &) –
- NewE (TopoDS_Edge &) –
- NewF (TopoDS_Face &) –
- C (Handle_Geom2d_Curve &) –
- Tol (float &) –
Return type:
-
NewParameter
()¶ - Returns true if the vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If there is no new parameter this function returns false, and the values of P and Tol are not significant.
Parameters: - V (TopoDS_Vertex &) –
- E (TopoDS_Edge &) –
- P (float &) –
- Tol (float &) –
Return type:
-
NewPoint
()¶ - Returns true if the vertex V has been modified. If V has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant.
Parameters: - V (TopoDS_Vertex &) –
- P (gp_Pnt) –
- Tol (float &) –
Return type:
-
NewSurface
()¶ - Returns true if the face, F, has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. The flag, RevWires, is set to true when the modification reverses the normal of the surface, (i.e. the wires have to be reversed). The flag, RevFace, is set to true if the orientation of the modified face changes in the shells which contain it. If the face has not been modified this function returns false, and the values of S, L, Tol, RevWires and RevFace are not significant.
Parameters: Return type:
-
NewTriangulation
()¶ - Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face
Parameters: - F (TopoDS_Face &) –
- T (Handle_Poly_Triangulation &) –
Return type:
-
thisown
¶ The membership flag
-
-
class
BRepTools_Modifier
(*args)¶ Bases:
object
- Creates an empty Modifier.
Return type: None - Creates a modifier on the shape <S>.
Parameters: S (TopoDS_Shape &) – Return type: None - Creates a modifier on the shape <S>, and performs the modifications described by <M>.
Parameters: - S (TopoDS_Shape &) –
- M (Handle_BRepTools_Modification &) –
Return type: -
Init
()¶ - Initializes the modifier with the shape <S>.
Parameters: S (TopoDS_Shape &) – Return type: None
-
IsDone
()¶ - Returns Standard_True if the modification has been computed successfully.
Return type: bool
-
ModifiedShape
()¶ - Returns the modified shape corresponding to <S>.
Parameters: S (TopoDS_Shape &) – Return type: TopoDS_Shape
-
Perform
()¶ - Performs the modifications described by <M>.
Parameters: - M (Handle_BRepTools_Modification &) –
- aProgress (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
thisown
¶ The membership flag
-
class
BRepTools_NurbsConvertModification
(*args)¶ Bases:
OCC.BRepTools.BRepTools_Modification
Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
BRepTools_Quilt
(*args)¶ Bases:
object
Return type: None -
Add
()¶ - Add the faces of <S> to the Quilt, the faces containing bounded edges are copied.
Parameters: S (TopoDS_Shape &) – Return type: None
-
Bind
()¶ - Binds <Enew> to be the new edge instead of <Eold>. //! The faces of the added shape containing <Eold> will be copied to substitute <Eold> by <Enew>. //! The vertices of <Eold> will be bound to the vertices of <Enew> with the same orientation. //! If <Eold> and <Enew> have different orientations the curves are considered to be opposite and the pcurves of <Eold> will be copied and reversed in the new faces. //! <Eold> must belong to the next added shape, <Enew> must belong to a Shape added before.
Parameters: - Eold (TopoDS_Edge &) –
- Enew (TopoDS_Edge &) –
Return type: - Binds <VNew> to be a new vertex instead of <Vold>. //! The faces of the added shape containing <Vold> will be copied to substitute <Vold> by <Vnew>.
Parameters: - Vold (TopoDS_Vertex &) –
- Vnew (TopoDS_Vertex &) –
Return type:
-
Copy
()¶ - Returns the shape substitued to <S> in the Quilt.
Parameters: S (TopoDS_Shape &) – Return type: TopoDS_Shape
-
IsCopied
()¶ - Returns True if <S> has been copied (<S> is a vertex, an edge or a face)
Parameters: S (TopoDS_Shape &) – Return type: bool
-
Shells
()¶ - Returns a Compound of shells made from the current set of faces. The shells will be flagged as closed or not closed.
Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
class
BRepTools_ReShape
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
- Returns an empty Reshape
Return type: None -
Apply
()¶ - Applies the substitutions requests to a shape //! <until> gives the level of type until which requests are taken into account. For subshapes of the type <until> no rebuild and futher exploring are done. ACTUALLY, NOT IMPLEMENTED BELOW TopAbs_FACE //! <buildmode> says how to do on a SOLID,SHELL … if one of its sub-shapes has been changed: 0: at least one Replace or Remove -> COMPOUND, else as such 1: at least one Remove (Replace are ignored) -> COMPOUND 2: Replace and Remove are both ignored If Replace/Remove are ignored or absent, the result as same type as the starting shape
Parameters: - shape (TopoDS_Shape &) –
- until (TopAbs_ShapeEnum) –
- buildmode (int) –
Return type: - Applies the substitutions requests to a shape. //! <until> gives the level of type until which requests are taken into account. For subshapes of the type <until> no rebuild and futher exploring are done. //! NOTE: each subshape can be replaced by shape of the same type or by shape containing only shapes of that type (for example, TopoDS_Edge can be replaced by TopoDS_Edge, TopoDS_Wire or TopoDS_Compound containing TopoDS_Edges). If incompatible shape type is encountered, it is ignored and flag FAIL1 is set in Status.
Parameters: - shape (TopoDS_Shape &) –
- until (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:
-
Clear
()¶ - Clears all substitutions requests
Return type: void
-
GetHandle
()¶
-
IsRecorded
()¶ - Tells if a shape is recorded for Replace/Remove
Parameters: shape (TopoDS_Shape &) – Return type: bool
-
ModeConsiderLocation
()¶ - Returns (modifiable) the flag which defines whether Location of shape take into account during replacing shapes.
Return type: bool
-
ModeConsiderOrientation
()¶ - Returns (modifiable) the flag which defines whether Orientation of shape take into account during replacing shapes.
Return type: bool
-
Remove
()¶ - Sets a request to Remove a Shape If <oriented> is True, only for a shape with the SAME orientation. Else, whatever the orientation
Parameters: - shape (TopoDS_Shape &) –
- oriented (bool) – default value is Standard_False
Return type: void
-
Replace
()¶ - Sets a request to Replace a Shape by a new one If <oriented> is True, only if the orientation is the same Else, whatever the orientation, and the new shape takes the same orientation as <newshape> if the replaced one has the same as <shape>, else it is reversed
Parameters: - shape (TopoDS_Shape &) –
- newshape (TopoDS_Shape &) –
- oriented (bool) – default value is Standard_False
Return type: void
-
Status
()¶ - Returns a complete substitution status for a shape 0 : not recorded, <newsh> = original <shape> < 0: to be removed, <newsh> is NULL > 0: to be replaced, <newsh> is a new item If <last> is False, returns status and new shape recorded in the map directly for the shape, if True and status > 0 then recursively searches for the last status and new shape.
Parameters: - shape (TopoDS_Shape &) –
- newsh (TopoDS_Shape &) –
- last (bool) – default value is Standard_False
Return type:
-
Value
()¶ - Returns the new value for an individual shape If not recorded, returns the original shape itself If to be Removed, returns a Null Shape Else, returns the replacing item
Parameters: shape (TopoDS_Shape &) – Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
class
BRepTools_ShapeSet
(*args)¶ Bases:
OCC.TopTools.TopTools_ShapeSet
- Builds an empty ShapeSet. Parameter <isWithTriangles> is added for XML Persistence
Parameters: isWithTriangles (bool) – default value is Standard_True Return type: None - Builds an empty ShapeSet. Parameter <isWithTriangles> is added for XML Persistence
Parameters: - B (BRep_Builder &) –
- isWithTriangles (bool) – default value is Standard_True
Return type: -
DumpGeometryToString
()¶ BRepTools_ShapeSet_DumpGeometryToString(BRepTools_ShapeSet self) -> std::string
-
DumpPolygon3DToString
()¶ BRepTools_ShapeSet_DumpPolygon3DToString(BRepTools_ShapeSet self) -> std::string
-
DumpPolygonOnTriangulationToString
()¶ BRepTools_ShapeSet_DumpPolygonOnTriangulationToString(BRepTools_ShapeSet self) -> std::string
-
DumpTriangulationToString
()¶ BRepTools_ShapeSet_DumpTriangulationToString(BRepTools_ShapeSet self) -> std::string
-
ReadGeometryFromString
()¶ BRepTools_ShapeSet_ReadGeometryFromString(BRepTools_ShapeSet self, std::string src)
-
ReadPolygon3DFromString
()¶ BRepTools_ShapeSet_ReadPolygon3DFromString(BRepTools_ShapeSet self, std::string src)
-
ReadPolygonOnTriangulationFromString
()¶ BRepTools_ShapeSet_ReadPolygonOnTriangulationFromString(BRepTools_ShapeSet self, std::string src)
-
ReadTriangulationFromString
()¶ BRepTools_ShapeSet_ReadTriangulationFromString(BRepTools_ShapeSet self, std::string src)
-
WriteGeometryToString
()¶ BRepTools_ShapeSet_WriteGeometryToString(BRepTools_ShapeSet self) -> std::string
-
WritePolygon3D
()¶ - Writes the 3d polygons on the stream <OS> in a format that can be read back by Read.
Parameters: - OS (Standard_OStream &) –
- Compact (bool) – default value is Standard_True
Return type:
-
WritePolygonOnTriangulation
()¶ - Writes the polygons on triangulation on the stream <OS> in a format that can be read back by Read.
Parameters: - OS (Standard_OStream &) –
- Compact (bool) – default value is Standard_True
Return type:
-
WriteTriangulation
()¶ - Writes the triangulation on the stream <OS> in a format that can be read back by Read.
Parameters: - OS (Standard_OStream &) –
- Compact (bool) – default value is Standard_True
Return type:
-
thisown
¶ The membership flag
-
class
BRepTools_Substitution
(*args)¶ Bases:
object
Return type: None -
Build
()¶ - Build NewShape from <S> if its subshapes has modified. //! The methods <IsCopied> and <Copy> allows you to keep the resul of <Build>
Parameters: S (TopoDS_Shape &) – Return type: None
-
Copy
()¶ - Returns the set of shapes substitued to <S> .
Parameters: S (TopoDS_Shape &) – Return type: TopTools_ListOfShape
-
IsCopied
()¶ - Returns True if <S> has been replaced .
Parameters: S (TopoDS_Shape &) – Return type: bool
-
Substitute
()¶ - <Oldshape> will be replaced by <NewShapes>. //! <NewShapes> can be empty , in this case <OldShape> will disparate from its ancestors. //! if an item of <NewShapes> is oriented FORWARD. it will be oriented as <OldShape> in its ancestors. else it will be reversed.
Parameters: - OldShape (TopoDS_Shape &) –
- NewShapes (TopTools_ListOfShape &) –
Return type:
-
thisown
¶ The membership flag
-
-
class
BRepTools_TrsfModification
(*args)¶ Bases:
OCC.BRepTools.BRepTools_Modification
Parameters: T (gp_Trsf) – Return type: None -
GetHandle
()¶
-
Trsf
()¶ - Provides access to the gp_Trsf associated with this modification. The transformation can be changed.
Return type: gp_Trsf
-
thisown
¶ The membership flag
-
-
class
BRepTools_WireExplorer
(*args)¶ Bases:
object
- Constructs an empty explorer (which can be initialized using Init)
Return type: None - IInitializes an exploration of the wire <W>.
Parameters: W (TopoDS_Wire &) – Return type: None - Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>.
Parameters: - W (TopoDS_Wire &) –
- F (TopoDS_Face &) –
Return type: -
Current
()¶ - Returns the current edge.
Return type: TopoDS_Edge
-
CurrentVertex
()¶ - Returns the vertex connecting the current edge to the previous one.
Return type: TopoDS_Vertex
-
Init
()¶ - Initializes an exploration of the wire <W>.
Parameters: W (TopoDS_Wire &) – Return type: None - Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>.
Parameters: - W (TopoDS_Wire &) –
- F (TopoDS_Face &) –
Return type:
-
Orientation
()¶ - Returns an Orientation for the current edge.
Return type: TopAbs_Orientation
-
thisown
¶ The membership flag
-
class
Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_BRepTools_GTrsfModification
(*args)¶ Bases:
OCC.BRepTools.Handle_BRepTools_Modification
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_BRepTools_Modification
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_BRepTools_NurbsConvertModification
(*args)¶ Bases:
OCC.BRepTools.Handle_BRepTools_Modification
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_BRepTools_ReShape
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_BRepTools_TrsfModification
(*args)¶ Bases:
OCC.BRepTools.Handle_BRepTools_Modification
-
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
breptools
¶ Bases:
object
-
static
AddUVBounds
()¶ - Adds to the box <B> the bounding values in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- B (Bnd_Box2d &) –
Return type: void
- Adds to the box <B> the bounding values of the wire in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- W (TopoDS_Wire &) –
- B (Bnd_Box2d &) –
Return type: void
- Adds to the box <B> the bounding values of the edge in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- E (TopoDS_Edge &) –
- B (Bnd_Box2d &) –
Return type: void
-
static
Clean
()¶ - Removes all the triangulations of the faces of <S> and removes all polygons on triangulations of the edges.
Parameters: S (TopoDS_Shape &) – Return type: void
-
static
Compare
()¶ - Returns True if the distance between the two vertices is lower than their tolerance.
Parameters: - V1 (TopoDS_Vertex &) –
- V2 (TopoDS_Vertex &) –
Return type: - Returns True if the distance between the two edges is lower than their tolerance.
Parameters: - E1 (TopoDS_Edge &) –
- E2 (TopoDS_Edge &) –
Return type:
-
static
Dump
()¶ - Dumps the topological structure and the geometry of <Sh> on the stream <S>.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_OStream &) –
Return type: void
-
static
IsReallyClosed
()¶ - Verifies that the edge <E> is found two times on the face <F> before calling BRep_Tool::IsClosed.
Parameters: - E (TopoDS_Edge &) –
- F (TopoDS_Face &) –
Return type:
-
static
Map3DEdges
()¶ - Stores in the map <M> all the 3D topology edges of <S>.
Parameters: - S (TopoDS_Shape &) –
- M (TopTools_IndexedMapOfShape &) –
Return type: void
-
static
OuterWire
()¶ - Returns the outer most wire of <F>. Returns a Null wire if <F> has no wires.
Parameters: F (TopoDS_Face &) – Return type: TopoDS_Wire
-
static
Read
()¶ - Reads a Shape from <S> in returns it in <Sh>. <B> is used to build the shape.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_IStream &) –
- B (BRep_Builder &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type: void
- Reads a Shape from <File>, returns it in <Sh>. <B> is used to build the shape.
Parameters: - Sh (TopoDS_Shape &) –
- File (char *) –
- B (BRep_Builder &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
static
RemoveUnusedPCurves
()¶ - Removes all the pcurves of the edges of <S> that refer to surfaces not belonging to any face of <S>
Parameters: S (TopoDS_Shape &) – Return type: void
-
static
Triangulation
()¶ - verifies that each face from the shape <S> has got a triangulation with a deflection <= deflec and the edges a discretisation on this triangulation.
Parameters: - S (TopoDS_Shape &) –
- deflec (float) –
Return type:
-
static
UVBounds
()¶ - Returns in UMin, UMax, VMin, VMax the bounding values in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
- Returns in UMin, UMax, VMin, VMax the bounding values of the wire in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- W (TopoDS_Wire &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
- Returns in UMin, UMax, VMin, VMax the bounding values of the edge in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- E (TopoDS_Edge &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
-
static
Update
()¶ - Update a vertex (nothing is done)
Parameters: V (TopoDS_Vertex &) – Return type: void - Update an edge, compute 2d bounding boxes.
Parameters: E (TopoDS_Edge &) – Return type: void - Update a wire (nothing is done)
Parameters: W (TopoDS_Wire &) – Return type: void - Update a Face, update UV points.
Parameters: F (TopoDS_Face &) – Return type: void - Update a shell (nothing is done)
Parameters: S (TopoDS_Shell &) – Return type: void - Update a solid (nothing is done)
Parameters: S (TopoDS_Solid &) – Return type: void - Update a composite solid (nothing is done)
Parameters: C (TopoDS_CompSolid &) – Return type: void - Update a compound (nothing is done)
Parameters: C (TopoDS_Compound &) – Return type: void - Update a shape, call the corect update.
Parameters: S (TopoDS_Shape &) – Return type: void
-
static
UpdateFaceUVPoints
()¶ - For all the edges of the face <F> reset the UV points to ensure that connected faces have the same point at there common extremity.
Parameters: F (TopoDS_Face &) – Return type: void
-
static
Write
()¶ - Writes <Sh> on <S> in an ASCII format.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_OStream &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type: void
- Writes <Sh> in <File>.
Parameters: - Sh (TopoDS_Shape &) –
- File (char *) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
thisown
¶ The membership flag
-
static
-
breptools_AddUVBounds
()¶ - Adds to the box <B> the bounding values in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- B (Bnd_Box2d &) –
Return type: void
- Adds to the box <B> the bounding values of the wire in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- W (TopoDS_Wire &) –
- B (Bnd_Box2d &) –
Return type: void
- Adds to the box <B> the bounding values of the edge in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- E (TopoDS_Edge &) –
- B (Bnd_Box2d &) –
Return type: void
-
breptools_Clean
()¶ - Removes all the triangulations of the faces of <S> and removes all polygons on triangulations of the edges.
Parameters: S (TopoDS_Shape &) – Return type: void
-
breptools_Compare
()¶ - Returns True if the distance between the two vertices is lower than their tolerance.
Parameters: - V1 (TopoDS_Vertex &) –
- V2 (TopoDS_Vertex &) –
Return type: - Returns True if the distance between the two edges is lower than their tolerance.
Parameters: - E1 (TopoDS_Edge &) –
- E2 (TopoDS_Edge &) –
Return type:
-
breptools_Dump
()¶ - Dumps the topological structure and the geometry of <Sh> on the stream <S>.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_OStream &) –
Return type: void
-
breptools_IsReallyClosed
()¶ - Verifies that the edge <E> is found two times on the face <F> before calling BRep_Tool::IsClosed.
Parameters: - E (TopoDS_Edge &) –
- F (TopoDS_Face &) –
Return type:
-
breptools_Map3DEdges
()¶ - Stores in the map <M> all the 3D topology edges of <S>.
Parameters: - S (TopoDS_Shape &) –
- M (TopTools_IndexedMapOfShape &) –
Return type: void
-
breptools_OuterWire
()¶ - Returns the outer most wire of <F>. Returns a Null wire if <F> has no wires.
Parameters: F (TopoDS_Face &) – Return type: TopoDS_Wire
-
breptools_Read
()¶ - Reads a Shape from <S> in returns it in <Sh>. <B> is used to build the shape.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_IStream &) –
- B (BRep_Builder &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type: void
- Reads a Shape from <File>, returns it in <Sh>. <B> is used to build the shape.
Parameters: - Sh (TopoDS_Shape &) –
- File (char *) –
- B (BRep_Builder &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
breptools_RemoveUnusedPCurves
()¶ - Removes all the pcurves of the edges of <S> that refer to surfaces not belonging to any face of <S>
Parameters: S (TopoDS_Shape &) – Return type: void
-
breptools_Triangulation
()¶ - verifies that each face from the shape <S> has got a triangulation with a deflection <= deflec and the edges a discretisation on this triangulation.
Parameters: - S (TopoDS_Shape &) –
- deflec (float) –
Return type:
-
breptools_UVBounds
()¶ - Returns in UMin, UMax, VMin, VMax the bounding values in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
- Returns in UMin, UMax, VMin, VMax the bounding values of the wire in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- W (TopoDS_Wire &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
- Returns in UMin, UMax, VMin, VMax the bounding values of the edge in the parametric space of F.
Parameters: - F (TopoDS_Face &) –
- E (TopoDS_Edge &) –
- UMin (float &) –
- UMax (float &) –
- VMin (float &) –
- VMax (float &) –
Return type: void
-
breptools_Update
()¶ - Update a vertex (nothing is done)
Parameters: V (TopoDS_Vertex &) – Return type: void - Update an edge, compute 2d bounding boxes.
Parameters: E (TopoDS_Edge &) – Return type: void - Update a wire (nothing is done)
Parameters: W (TopoDS_Wire &) – Return type: void - Update a Face, update UV points.
Parameters: F (TopoDS_Face &) – Return type: void - Update a shell (nothing is done)
Parameters: S (TopoDS_Shell &) – Return type: void - Update a solid (nothing is done)
Parameters: S (TopoDS_Solid &) – Return type: void - Update a composite solid (nothing is done)
Parameters: C (TopoDS_CompSolid &) – Return type: void - Update a compound (nothing is done)
Parameters: C (TopoDS_Compound &) – Return type: void - Update a shape, call the corect update.
Parameters: S (TopoDS_Shape &) – Return type: void
-
breptools_UpdateFaceUVPoints
()¶ - For all the edges of the face <F> reset the UV points to ensure that connected faces have the same point at there common extremity.
Parameters: F (TopoDS_Face &) – Return type: void
-
breptools_Write
()¶ - Writes <Sh> on <S> in an ASCII format.
Parameters: - Sh (TopoDS_Shape &) –
- S (Standard_OStream &) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type: void
- Writes <Sh> in <File>.
Parameters: - Sh (TopoDS_Shape &) –
- File (char *) –
- PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases