OCC.BRepTools module

class OCC.BRepTools.BRepTools_DataMapIteratorOfMapOfVertexPnt2d(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (BRepTools_MapOfVertexPnt2d &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:TColgp_SequenceOfPnt2d
thisown

The membership flag

class OCC.BRepTools.BRepTools_DataMapNodeOfMapOfVertexPnt2d(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

BRepTools_DataMapNodeOfMapOfVertexPnt2d_GetHandle(BRepTools_DataMapNodeOfMapOfVertexPnt2d self) -> Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d

Key()
Return type:TopoDS_Shape
Value()
Return type:TColgp_SequenceOfPnt2d
thisown

The membership flag

class OCC.BRepTools.BRepTools_GTrsfModification(*args)

Bases: OCC.BRepTools.BRepTools_Modification

GTrsf()
  • Gives an access on the GTrsf.
Return type:gp_GTrsf
GetHandle()

BRepTools_GTrsfModification_GetHandle(BRepTools_GTrsfModification self) -> Handle_BRepTools_GTrsfModification

thisown

The membership flag

class OCC.BRepTools.BRepTools_MapOfVertexPnt2d(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (BRepTools_MapOfVertexPnt2d &) –
Return type:BRepTools_MapOfVertexPnt2d
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TColgp_SequenceOfPnt2d) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:TColgp_SequenceOfPnt2d
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:TColgp_SequenceOfPnt2d
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (BRepTools_MapOfVertexPnt2d &) –
Return type:BRepTools_MapOfVertexPnt2d
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
thisown

The membership flag

class OCC.BRepTools.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()

BRepTools_Modification_GetHandle(BRepTools_Modification self) -> Handle_BRepTools_Modification

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:

bool

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:

bool

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:

bool

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:

bool

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:
  • F (TopoDS_Face &) –
  • S (Handle_Geom_Surface &) –
  • L (TopLoc_Location &) –
  • Tol (float &) –
  • RevWires (bool) –
  • RevFace (bool) –
Return type:

bool

thisown

The membership flag

class OCC.BRepTools.BRepTools_Modifier(*args)

Bases: object

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 &) –
Return type:None
thisown

The membership flag

class OCC.BRepTools.BRepTools_NurbsConvertModification

Bases: OCC.BRepTools.BRepTools_Modification

GetHandle()

BRepTools_NurbsConvertModification_GetHandle(BRepTools_NurbsConvertModification self) -> Handle_BRepTools_NurbsConvertModification

thisown

The membership flag

class OCC.BRepTools.BRepTools_Quilt

Bases: object

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:

None

  • 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:

None

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 OCC.BRepTools.BRepTools_ReShape

Bases: OCC.MMgt.MMgt_TShared

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 (Standard_Integer) –
Return type:

TopoDS_Shape

  • 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:

TopoDS_Shape

  • 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:

TopoDS_Shape

Clear()
  • Clears all substitutions requests
Return type:None
GetHandle()

BRepTools_ReShape_GetHandle(BRepTools_ReShape self) -> Handle_BRepTools_ReShape

GetModeConsiderLocation()

BRepTools_ReShape_GetModeConsiderLocation(BRepTools_ReShape self) -> Standard_Boolean

GetModeConsiderOrientation()

BRepTools_ReShape_GetModeConsiderOrientation(BRepTools_ReShape self) -> Standard_Boolean

IsRecorded()
  • Tells if a shape is recorded for Replace/Remove
Parameters:shape (TopoDS_Shape &) –
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:

None

  • 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:

None

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:

None

  • 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:

None

SetModeConsiderLocation()

BRepTools_ReShape_SetModeConsiderLocation(BRepTools_ReShape self, Standard_Boolean value)

SetModeConsiderOrientation()

BRepTools_ReShape_SetModeConsiderOrientation(BRepTools_ReShape self, Standard_Boolean value)

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:

int

  • 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:

int

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 OCC.BRepTools.BRepTools_ShapeSet(*args)

Bases: OCC.TopTools.TopTools_ShapeSet

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:

None

  • 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:

None

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:

None

  • 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:

None

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:

None

  • 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:

None

thisown

The membership flag

class OCC.BRepTools.BRepTools_Substitution

Bases: object

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
Clear()
  • Reset all the fields.
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:

None

thisown

The membership flag

class OCC.BRepTools.BRepTools_TrsfModification(*args)

Bases: OCC.BRepTools.BRepTools_Modification

GetHandle()

BRepTools_TrsfModification_GetHandle(BRepTools_TrsfModification self) -> Handle_BRepTools_TrsfModification

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 OCC.BRepTools.BRepTools_WireExplorer(*args)

Bases: object

Clear()
  • Clears the content of the explorer.
Return type:None
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:

None

More()
  • Returns True if there is a current edge.
Return type:bool
Next()
  • Proceeds to the next edge.
Return type:None
Orientation()
  • Returns an Orientation for the current edge.
Return type:TopAbs_Orientation
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_GTrsfModification(*args)

Bases: OCC.BRepTools.Handle_BRepTools_Modification

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_Modification(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_NurbsConvertModification(*args)

Bases: OCC.BRepTools.Handle_BRepTools_Modification

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_ReShape(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.Handle_BRepTools_TrsfModification(*args)

Bases: OCC.BRepTools.Handle_BRepTools_Modification

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.BRepTools.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.BRepTools.breptools(*args, **kwargs)

Bases: object

static AddUVBounds(*args)
  • 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(*args)
  • 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(*args)
  • Returns True if the distance between the two vertices is lower than their tolerance.
Parameters:
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

bool

  • Returns True if the distance between the two edges is lower than their tolerance.
Parameters:
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
Return type:

bool

static Dump(*args)
  • 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(*args)
  • 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:

bool

static Map3DEdges(*args)
  • Stores in the map <M> all the 3D topology edges of <S>.
Parameters:
  • S (TopoDS_Shape &) –
  • M (TopTools_IndexedMapOfShape &) –
Return type:

void

static OuterWire(*args)
  • 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(*args)
  • 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 <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:

bool

  • 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:

bool

static RemoveUnusedPCurves(*args)
  • 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(*args)
  • 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:

bool

static UVBounds(*args)
  • 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(*args)
  • 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(*args)
  • 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(*args)
  • 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> 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:

bool

  • Writes <Sh> in <File>.
Parameters:
  • Sh (TopoDS_Shape &) –
  • File (char *) –
  • PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:

bool

thisown

The membership flag

OCC.BRepTools.breptools_AddUVBounds(*args)
  • 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

OCC.BRepTools.breptools_Clean(*args)
  • 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
OCC.BRepTools.breptools_Compare(*args)
  • Returns True if the distance between the two vertices is lower than their tolerance.
Parameters:
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

bool

  • Returns True if the distance between the two edges is lower than their tolerance.
Parameters:
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
Return type:

bool

OCC.BRepTools.breptools_Dump(*args)
  • Dumps the topological structure and the geometry of <Sh> on the stream <S>.
Parameters:
  • Sh (TopoDS_Shape &) –
  • S (Standard_OStream &) –
Return type:

void

OCC.BRepTools.breptools_IsReallyClosed(*args)
  • 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:

bool

OCC.BRepTools.breptools_Map3DEdges(*args)
  • Stores in the map <M> all the 3D topology edges of <S>.
Parameters:
  • S (TopoDS_Shape &) –
  • M (TopTools_IndexedMapOfShape &) –
Return type:

void

OCC.BRepTools.breptools_OuterWire(*args)
  • Returns the outer most wire of <F>. Returns a Null wire if <F> has no wires.
Parameters:F (TopoDS_Face &) –
Return type:TopoDS_Wire
OCC.BRepTools.breptools_Read(*args)
  • 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 <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:

bool

  • 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:

bool

OCC.BRepTools.breptools_RemoveUnusedPCurves(*args)
  • 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
OCC.BRepTools.breptools_Triangulation(*args)
  • 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:

bool

OCC.BRepTools.breptools_UVBounds(*args)
  • 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

OCC.BRepTools.breptools_Update(*args)
  • 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
OCC.BRepTools.breptools_UpdateFaceUVPoints(*args)
  • 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
OCC.BRepTools.breptools_Write(*args)
  • 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> 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:

bool

  • Writes <Sh> in <File>.
Parameters:
  • Sh (TopoDS_Shape &) –
  • File (char *) –
  • PR (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:

bool