OCC.BRepBuilderAPI module

class OCC.BRepBuilderAPI.BRepBuilderAPI_BndBoxTreeSelector

Bases: object

Accept()
  • Implementation of acceptance method This method is called when the bounding box intersect with the current. It stores the object - the index of box in the list of accepted objects. returns True, because the object is accepted
Parameters:theObj (Standard_Integer &) –
Return type:bool
ClearResList()
  • Clear the list of intersecting boxes
Return type:None
Reject()
  • Implementation of rejection method returns True if the bounding box does not intersect with the current
Parameters:theBox (Bnd_Box &) –
Return type:bool
ResInd()
  • Get list of indexes of boxes intersecting with the current box
Return type:TColStd_ListOfInteger
SetCurrent()
  • Set current box to search for overlapping with him
Parameters:theBox (Bnd_Box &) –
Return type:None
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_Collect

Bases: object

Add()
Parameters:
  • SI (TopoDS_Shape &) –
  • MKS (BRepBuilderAPI_MakeShape &) –
Return type:

None

AddGenerated()
Parameters:
  • S (TopoDS_Shape &) –
  • Gen (TopoDS_Shape &) –
Return type:

None

AddModif()
Parameters:
  • S (TopoDS_Shape &) –
  • Mod (TopoDS_Shape &) –
Return type:

None

Filter()
Parameters:SF (TopoDS_Shape &) –
Return type:None
Generated()
Return type:TopTools_DataMapOfShapeListOfShape
Modification()
Return type:TopTools_DataMapOfShapeListOfShape
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_Command(*args, **kwargs)

Bases: object

Check()
  • Raises NotDone if done is false.
Return type:None
Delete()
Return type:void
IsDone()
Return type:bool
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_Copy(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_ModifyShape

Perform()
  • Copies the shape S. Use the function Shape to access the result. If copyGeom is False, only topological objects will be copied, while geometry will be shared with original shape.
Parameters:
  • S (TopoDS_Shape &) –
  • copyGeom (bool) – default value is Standard_True
Return type:

None

  • Copies the shape S. Use the function Shape to access the result. If copyGeom is False, only topological objects will be copied, while geometry will be shared with original shape.
Parameters:
  • S (TopoDS_Shape &) –
  • copyGeom (bool) – default value is Standard_True
Return type:

None

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_FindPlane(*args)

Bases: object

Found()
  • Returns true if a plane containing the edges of the shape is found and built. Use the function Plane to consult the result.
Return type:bool
Init()
  • Constructs the plane containing the edges of the shape S. A plane is built only if all the edges are within a distance of less than or equal to tolerance from a planar surface. This tolerance value is equal to the larger of the following two values: - Tol, where the default value is negative, or - the largest of the tolerance values assigned to the individual edges of S. Use the function Found to verify that a plane is built. The resulting plane is then retrieved using the function Plane.
Parameters:
  • S (TopoDS_Shape &) –
  • Tol (float) – default value is - 1
Return type:

None

  • Constructs the plane containing the edges of the shape S. A plane is built only if all the edges are within a distance of less than or equal to tolerance from a planar surface. This tolerance value is equal to the larger of the following two values: - Tol, where the default value is negative, or - the largest of the tolerance values assigned to the individual edges of S. Use the function Found to verify that a plane is built. The resulting plane is then retrieved using the function Plane.
Parameters:
  • S (TopoDS_Shape &) –
  • Tol (float) – default value is - 1
Return type:

None

Plane()
  • Returns the plane containing the edges of the shape. Warning Use the function Found to verify that the plane is built. If a plane is not found, Plane returns a null handle.
Return type:Handle_Geom_Plane
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_GTransform(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_ModifyShape

Perform()
  • Applies the geometric transformation defined at the time of construction of this framework to the shape S. - If the transformation T is direct and isometric (i.e. if the determinant of the vectorial part of T is equal to 1.), and if Copy equals false (default value), the resulting shape is the same as the original but with a new location assigned to it. - In all other cases, the transformation is applied to a duplicate of S. Use the function Shape to access the result. Note: this framework can be reused to apply the same geometric transformation to other shapes: just specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

  • Applies the geometric transformation defined at the time of construction of this framework to the shape S. - If the transformation T is direct and isometric (i.e. if the determinant of the vectorial part of T is equal to 1.), and if Copy equals false (default value), the resulting shape is the same as the original but with a new location assigned to it. - In all other cases, the transformation is applied to a duplicate of S. Use the function Shape to access the result. Note: this framework can be reused to apply the same geometric transformation to other shapes: just specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeEdge(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Edge()
  • Returns the constructed edge. Exceptions StdFail_NotDone if the edge is not built.
Return type:TopoDS_Edge
Error()
  • Returns the construction status - BRepBuilderAPI_EdgeDone if the edge is built, or - another value of the BRepBuilderAPI_EdgeError enumeration indicating the reason of construction failure.
Return type:BRepBuilderAPI_EdgeError
Init()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • C
  • p1 (float) –
  • p2 (float) –
  • C
  • P1 (gp_Pnt) –
  • P2 (gp_Pnt) –
  • C
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
  • C
  • P1
  • P2
  • p1
  • p2
  • C
  • V1
  • V2
  • p1
  • p2
  • C
  • S (Handle_Geom_Surface &) –
  • C
  • S
  • p1
  • p2
  • C
  • S
  • P1
  • P2
  • C
  • S
  • V1
  • V2
  • C
  • S
  • P1
  • P2
  • p1
  • p2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

  • Defines or redefines the arguments for the construction of an edge. This function is currently used after the empty constructor BRepAPI_MakeEdge().
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • S (Handle_Geom_Surface &) –
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
  • p1 (float) –
  • p2 (float) –
Return type:

None

Vertex1()
  • Returns the first vertex of the edge. May be Null.
Return type:TopoDS_Vertex
Vertex2()
  • Returns the second vertex of the edge. May be Null. Warning The returned vertex in each function corresponds respectively to - the lowest, or - the highest parameter on the curve along which the edge is built. It does not correspond to the first or second vertex given at the time of the construction, if the edge is oriented reversed. Exceptions StdFail_NotDone if the edge is not built.
Return type:TopoDS_Vertex
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeEdge2d(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Edge()
Return type:TopoDS_Edge
Error()
  • Returns the error description when NotDone.
Return type:BRepBuilderAPI_EdgeError
Init()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • C
  • p1 (float) –
  • p2 (float) –
  • C
  • P1 (gp_Pnt2d) –
  • P2 (gp_Pnt2d) –
  • C
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
  • C
  • P1
  • P2
  • p1
  • p2
  • C
  • V1
  • V2
  • p1
  • p2
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Vertex1()
  • Returns the first vertex of the edge. May be Null.
Return type:TopoDS_Vertex
Vertex2()
  • Returns the second vertex of the edge. May be Null.
Return type:TopoDS_Vertex
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeFace(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Add()
  • Adds the wire W to the constructed face as a hole. Warning W must not cross the other bounds of the face, and all the bounds must define only one area on the surface. (Be careful, however, as this is not checked.) Example // a cylinder gp_Cylinder C = ..; // a wire TopoDS_Wire W = ...; BRepBuilderAPI_MakeFace MF(C); MF.Add(W); TopoDS_Face F = MF;
Parameters:W (TopoDS_Wire &) –
Return type:None
Error()
  • Returns the construction status BRepBuilderAPI_FaceDone if the face is built, or - another value of the BRepBuilderAPI_FaceError enumeration indicating why the construction failed, in particular when the given parameters are outside the bounds of the surface.
Return type:BRepBuilderAPI_FaceError
Face()
  • Returns the constructed face. Exceptions StdFail_NotDone if no face is built.
Return type:TopoDS_Face
Init()
  • Initializes (or reinitializes) the construction of a face by creating a new object which is a copy of the face F, in order to add wires to it, using the function Add. Note: this complete copy of the geometry is only required if you want to work on the geometries of the two faces independently.
Parameters:F (TopoDS_Face &) –
Return type:None
  • Initializes (or reinitializes) the construction of a face on the surface S. If Bound is true, a wire is automatically created from the natural bounds of the surface S and added to the face in order to bound it. If Bound is false, no wire is added. This option is used when real bounds are known. These will be added to the face after this initialization, using the function Add. TolDegen parameter is used for resolution of degenerated edges if calculation of natural bounds is turned on.
Parameters:
  • S (Handle_Geom_Surface &) –
  • Bound (bool) –
  • TolDegen (float) –
Return type:

None

  • Initializes (or reinitializes) the construction of a face on the surface S, limited in the u parametric direction by the two parameter values UMin and UMax and in the v parametric direction by the two parameter values VMin and VMax. Warning Error returns: - BRepBuilderAPI_ParametersOutOfRange when the parameters given are outside the bounds of the surface or the basis surface of a trimmed surface. TolDegen parameter is used for resolution of degenerated edges.
Parameters:
  • S (Handle_Geom_Surface &) –
  • UMin (float) –
  • UMax (float) –
  • VMin (float) –
  • VMax (float) –
  • TolDegen (float) –
Return type:

None

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakePolygon(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Add()
Parameters:P (gp_Pnt) –
Return type:None
  • Adds the point P or the vertex V at the end of the polygonal wire under construction. A vertex is automatically created on the point P. Warning - When P or V is coincident to the previous vertex, no edge is built. The method Added can be used to test for this. Neither P nor V is checked to verify that it is coincident with another vertex than the last one, of the polygonal wire under construction. It is also possible to add vertices on a closed polygon (built for example by using a constructor which declares the polygon closed, or after the use of the Close function). Consequently, be careful using this function: you might create: - a polygonal wire with two consecutive coincident edges, or - a non manifold polygonal wire. - P or V is not checked to verify if it is coincident with another vertex but the last one, of the polygonal wire under construction. It is also possible to add vertices on a closed polygon (built for example by using a constructor which declares the polygon closed, or after the use of the Close function). Consequently, be careful when using this function: you might create: - a polygonal wire with two consecutive coincident edges, or - a non-manifold polygonal wire.
Parameters:V (TopoDS_Vertex &) –
Return type:None
Added()
  • Returns true if the last vertex added to the constructed polygonal wire is not coincident with the previous one.
Return type:bool
Close()
  • Closes the polygonal wire under construction. Note - this is equivalent to adding the first vertex to the polygonal wire under construction.
Return type:None
Edge()
  • Returns the edge built between the last two points or vertices added to the constructed polygonal wire under construction. Warning If there is only one vertex in the polygonal wire, the result is a null edge.
Return type:TopoDS_Edge
FirstVertex()
Return type:TopoDS_Vertex
LastVertex()
  • Returns the first or the last vertex of the polygonal wire under construction. If the constructed polygonal wire is closed, the first and the last vertices are identical.
Return type:TopoDS_Vertex
Wire()
  • Returns the constructed polygonal wire, or the already built part of the polygonal wire under construction. Exceptions StdFail_NotDone if the wire is not built, i.e. if fewer than two vertices have been chained together by this construction algorithm.
Return type:TopoDS_Wire
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape(*args, **kwargs)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_Command

Build()
  • This is called by Shape(). It does nothing but may be redefined.
Return type:void
Generated()
  • Returns the list of shapes generated from the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
IsDeleted()
  • Returns true if the shape S has been deleted.
Parameters:S (TopoDS_Shape &) –
Return type:bool
Modified()
  • Returns the list of shapes modified from the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
Shape()
  • Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShell(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Error()
  • Returns the construction status: - BRepBuilderAPI_ShellDone if the shell is built, or - another value of the BRepBuilderAPI_ShellError enumeration indicating why the construction failed. This is frequently BRepBuilderAPI_ShellParametersOutOfRange indicating that the given parameters are outside the bounds of the surface.
Return type:BRepBuilderAPI_ShellError
Init()
  • Defines or redefines the arguments for the construction of a shell. The construction is initialized with the surface S, limited in the u parametric direction by the two parameter values UMin and UMax, and in the v parametric direction by the two parameter values VMin and VMax. Warning The function Error returns: - BRepBuilderAPI_ShellParametersOutOfRange when the given parameters are outside the bounds of the surface or the basis surface if S is trimmed
Parameters:
  • S (Handle_Geom_Surface &) –
  • UMin (float) –
  • UMax (float) –
  • VMin (float) –
  • VMax (float) –
  • Segment (bool) – default value is Standard_False
Return type:

None

  • Defines or redefines the arguments for the construction of a shell. The construction is initialized with the surface S, limited in the u parametric direction by the two parameter values UMin and UMax, and in the v parametric direction by the two parameter values VMin and VMax. Warning The function Error returns: - BRepBuilderAPI_ShellParametersOutOfRange when the given parameters are outside the bounds of the surface or the basis surface if S is trimmed
Parameters:
  • S (Handle_Geom_Surface &) –
  • UMin (float) –
  • UMax (float) –
  • VMin (float) –
  • VMax (float) –
  • Segment (bool) – default value is Standard_False
Return type:

None

Shell()
  • Returns the new Shell.
Return type:TopoDS_Shell
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeSolid(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Add()
  • Adds the shell to the current solid. //! Warning No check is done to verify the conditions of coherence of the resulting solid. In particular, S must not intersect other shells of the solid under construction. Besides, after all shells have been added, one of these shells should constitute the outside skin of the solid. It may be closed (a finite solid) or open (an infinite solid). Other shells form hollows (cavities) in these previous ones. Each must bound a closed volume.
Parameters:S (TopoDS_Shell &) –
Return type:None
Solid()
  • Returns the new Solid.
Return type:TopoDS_Solid
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeVertex(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Vertex()
  • Returns the constructed vertex.
Return type:TopoDS_Vertex
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_MakeWire(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

Add()
  • Adds the edge E to the wire under construction. E must be connectable to the wire under construction, and, unless it is the first edge of the wire, must satisfy the following condition: one of its vertices must be geometrically coincident with one of the vertices of the wire (provided that the highest tolerance factor is assigned to the two vertices). It could also be the same vertex. Warning If E is not connectable to the wire under construction it is not added. The function Error will return BRepBuilderAPI_DisconnectedWire, the function IsDone will return false and the function Wire will raise an error, until a new connectable edge is added.
Parameters:E (TopoDS_Edge &) –
Return type:None
  • Add the edges of <W> to the current wire.
Parameters:W (TopoDS_Wire &) –
Return type:None
  • Adds the edges of <L> to the current wire. The edges are not to be consecutive. But they are to be all connected geometrically or topologically. If some of them are not connected the Status give DisconnectedWire but the ‘Maker’ is Done() and you can get the partial result. (ie connected to the first edgeof the list <L>)
Parameters:L (TopTools_ListOfShape &) –
Return type:None
Edge()
  • Returns the last edge added to the wire under construction. Warning - This edge can be different from the original one (the argument of the function Add, for instance,) - A null edge is returned if there are no edges in the wire under construction, or if the last edge which you tried to add was not connectable..
Return type:TopoDS_Edge
Error()
  • Returns the construction status - BRepBuilderAPI_WireDone if the wire is built, or - another value of the BRepBuilderAPI_WireError enumeration indicating why the construction failed.
Return type:BRepBuilderAPI_WireError
Vertex()
  • Returns the last vertex of the last edge added to the wire under construction. Warning A null vertex is returned if there are no edges in the wire under construction, or if the last edge which you tried to add was not connectableR
Return type:TopoDS_Vertex
Wire()
  • Returns the constructed wire; or the part of the wire under construction already built. Exceptions StdFail_NotDone if a wire is not built.
Return type:TopoDS_Wire
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_ModifyShape(*args, **kwargs)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

ModifiedShape()
  • Returns the modified shape corresponding to <S>. S can correspond to the entire initial shape or to its subshape. Exceptions Standard_NoSuchObject if S is not the initial shape or a subshape of the initial shape to which the transformation has been applied. Raises NoSuchObject from Standard if S is not the initial shape or a sub-shape of the initial shape.
Parameters:S (TopoDS_Shape &) –
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_NurbsConvert(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_ModifyShape

Perform()
  • Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: this framework can be reused to convert other shapes: you specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

  • Builds a new shape by converting the geometry of the shape S into NURBS geometry. Specifically, all curves supporting edges of S are converted into BSpline curves, and all surfaces supporting its faces are converted into BSpline surfaces. Use the function Shape to access the new shape. Note: this framework can be reused to convert other shapes: you specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_Sewing(*args)

Bases: OCC.MMgt.MMgt_TShared

Add()
  • Defines the shapes to be sewed or controlled
Parameters:shape (TopoDS_Shape &) –
Return type:None
ContigousEdge()
  • Gives each contigous edge
Parameters:index (Standard_Integer) –
Return type:TopoDS_Edge
ContigousEdgeCouple()
  • Gives the sections (edge) belonging to a contigous edge
Parameters:index (Standard_Integer) –
Return type:TopTools_ListOfShape
DegeneratedShape()
  • Gives each degenerated shape
Parameters:index (Standard_Integer) –
Return type:TopoDS_Shape
DeletedFace()
  • Gives each deleted face
Parameters:index (Standard_Integer) –
Return type:TopoDS_Face
Dump()
  • print the informations
Return type:None
FaceMode()
  • Returns mode for sewing faces By default - true.
Return type:bool
FloatingEdgesMode()
  • Returns mode for sewing floating edges By default - false.
Return type:bool
FreeEdge()
  • Gives each free edge
Parameters:index (Standard_Integer) –
Return type:TopoDS_Edge
GetContext()
  • return context
Return type:Handle_BRepTools_ReShape
GetHandle()

BRepBuilderAPI_Sewing_GetHandle(BRepBuilderAPI_Sewing self) -> Handle_BRepBuilderAPI_Sewing

Init()
  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

  • initialize the parameters if necessary
Parameters:
  • tolerance (float) – default value is 1.0e-06
  • option1 (bool) – default value is Standard_True
  • option2 (bool) – default value is Standard_True
  • option3 (bool) – default value is Standard_True
  • option4 (bool) – default value is Standard_False
Return type:

None

IsDegenerated()
  • Indicates if a input shape is degenerated
Parameters:shape (TopoDS_Shape &) –
Return type:bool
IsModified()
  • Indicates if a input shape has been modified
Parameters:shape (TopoDS_Shape &) –
Return type:bool
IsModifiedSubShape()
  • Indicates if a input subshape has been modified
Parameters:shape (TopoDS_Shape &) –
Return type:bool
IsSectionBound()
  • Indicates if a section is bound (before use SectionToBoundary)
Parameters:section (TopoDS_Edge &) –
Return type:bool
Load()
  • Loades the context shape.
Parameters:shape (TopoDS_Shape &) –
Return type:None
LocalTolerancesMode()
  • Returns mode for accounting of local tolerances of edges and vertices during of merging.
Return type:bool
MaxTolerance()
  • Gives set max tolerance
Return type:float
MinTolerance()
  • Gives set min tolerance.
Return type:float
Modified()
  • Gives a modifieded shape
Parameters:shape (TopoDS_Shape &) –
Return type:TopoDS_Shape
ModifiedSubShape()
  • Gives a modifieded subshape
Parameters:shape (TopoDS_Shape &) –
Return type:TopoDS_Shape
MultipleEdge()
  • Gives each multiple edge
Parameters:index (Standard_Integer) –
Return type:TopoDS_Edge
NbContigousEdges()
  • Gives the number of contigous edges (edge shared by two faces)
Return type:int
NbDegeneratedShapes()
  • Gives the number of degenerated shapes
Return type:int
NbDeletedFaces()
  • Gives the number of deleted faces (faces smallest than tolerance)
Return type:int
NbFreeEdges()
  • Gives the number of free edges (edge shared by one face)
Return type:int
NbMultipleEdges()
  • Gives the number of multiple edges (edge shared by more than two faces)
Return type:int
NonManifoldMode()
  • Gets mode for non-manifold sewing. INTERNAL FUCTIONS —
Return type:bool
Perform()
  • Computing thePI - progress indicator of algorithm
Parameters:thePI (Handle_Message_ProgressIndicator &) – default value is 0
Return type:None
  • Computing thePI - progress indicator of algorithm
Parameters:thePI (Handle_Message_ProgressIndicator &) – default value is 0
Return type:None
SameParameterMode()
  • Gets same parameter mode.
Return type:bool
SectionToBoundary()
  • Gives the original edge (free boundary) which becomes the the section. Remember that sections constitute common edges. This imformation is important for control because with original edge we can find the surface to which the section is attached.
Parameters:section (TopoDS_Edge &) –
Return type:TopoDS_Edge
SetContext()
  • set context
Parameters:theContext (Handle_BRepTools_ReShape &) –
Return type:None
SetFaceMode()
  • Sets mode for sewing faces By default - true.
Parameters:theFaceMode (bool) –
Return type:None
SetFloatingEdgesMode()
  • Sets mode for sewing floating edges By default - false. Returns mode for cutting floating edges By default - false. Sets mode for cutting floating edges By default - false.
Parameters:theFloatingEdgesMode (bool) –
Return type:None
SetLocalTolerancesMode()
  • Sets mode for accounting of local tolerances of edges and vertices during of merging in this case WorkTolerance = myTolerance + tolEdge1+ tolEdg2;
Parameters:theLocalTolerancesMode (bool) –
Return type:None
SetMaxTolerance()
  • Sets max tolerance.
Parameters:theMaxToler (float) –
Return type:None
SetMinTolerance()
  • Sets min tolerance
Parameters:theMinToler (float) –
Return type:None
SetNonManifoldMode()
  • Sets mode for non-manifold sewing.
Parameters:theNonManifoldMode (bool) –
Return type:None
SetSameParameterMode()
  • Sets same parameter mode.
Parameters:SameParameterMode (bool) –
Return type:None
SetTolerance()
  • Sets tolerance
Parameters:theToler (float) –
Return type:None
SewedShape()
  • Gives the sewed shape a null shape if nothing constructed may be a face, a shell, a solid or a compound
Return type:TopoDS_Shape
Tolerance()
  • Gives set tolerance.
Return type:float
WhichFace()
  • Gives a modified shape
Parameters:
  • theEdg (TopoDS_Edge &) –
  • index (Standard_Integer) – default value is 1
Return type:

TopoDS_Face

  • Gives a modified shape
Parameters:
  • theEdg (TopoDS_Edge &) –
  • index (Standard_Integer) – default value is 1
Return type:

TopoDS_Face

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_Transform(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_ModifyShape

Perform()
  • pplies the geometric transformation defined at the time of construction of this framework to the shape S. - If the transformation T is direct and isometric, in other words, if the determinant of the vectorial part of T is equal to 1., and if Copy equals false (the default value), the resulting shape is the same as the original but with a new location assigned to it. - In all other cases, the transformation is applied to a duplicate of S. Use the function Shape to access the result. Note: this framework can be reused to apply the same geometric transformation to other shapes. You only need to specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

  • pplies the geometric transformation defined at the time of construction of this framework to the shape S. - If the transformation T is direct and isometric, in other words, if the determinant of the vectorial part of T is equal to 1., and if Copy equals false (the default value), the resulting shape is the same as the original but with a new location assigned to it. - In all other cases, the transformation is applied to a duplicate of S. Use the function Shape to access the result. Note: this framework can be reused to apply the same geometric transformation to other shapes. You only need to specify them by calling the function Perform again.
Parameters:
  • S (TopoDS_Shape &) –
  • Copy (bool) – default value is Standard_False
Return type:

None

thisown

The membership flag

class OCC.BRepBuilderAPI.BRepBuilderAPI_VertexInspector(*args)

Bases: object

Add()
  • Keep the points used for comparison
Parameters:thePnt (gp_XYZ) –
Return type:None
ClearResList()
  • Clear the list of adjacent points
Return type:None
Inspect()
  • Implementation of inspection method
Parameters:theTarget (Standard_Integer) –
Return type:NCollection_CellFilter_Action
ResInd()
  • Get list of indexes of points adjacent with the current
Return type:TColStd_ListOfInteger
SetCurrent()
  • Set current point to search for coincidence
Parameters:theCurPnt (gp_XYZ) –
Return type:None
thisown

The membership flag

class OCC.BRepBuilderAPI.Handle_BRepBuilderAPI_Sewing(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.BRepBuilderAPI.brepbuilderapi(*args, **kwargs)

Bases: object

static Plane(*args)
  • Sets the current plane.
Parameters:P (Handle_Geom_Plane &) –
Return type:void
  • Returns the current plane.
Return type:Handle_Geom_Plane
static Precision(*args)
  • Sets the default precision. The current Precision is returned.
Parameters:P (float) –
Return type:void
  • Returns the default precision.
Return type:float
thisown

The membership flag

OCC.BRepBuilderAPI.brepbuilderapi_Plane(*args)
  • Sets the current plane.
Parameters:P (Handle_Geom_Plane &) –
Return type:void
  • Returns the current plane.
Return type:Handle_Geom_Plane
OCC.BRepBuilderAPI.brepbuilderapi_Precision(*args)
  • Sets the default precision. The current Precision is returned.
Parameters:P (float) –
Return type:void
  • Returns the default precision.
Return type:float