OCC.BRepFeat module

BRepFeat is necessary for thecreation and manipulation of both form and mechanical features in aBoundary Representation framework. Form features can be depressions orprotrusions and include the following types:- Cylinder- Draft Prism- Prism- Revolved feature- PipeDepending on whether you wish to make a depression or a protrusion,you can choose your operation type between the following:- removing matter (a Boolean cut: Fuse setting 0)- adding matter (Boolean fusion: Fuse setting 1)The semantics of form feature creation is based on theconstruction of shapes:- for a certain length in a certain direction- up to a limiting face- from a limiting face at a height- above and/or below a planeThe shape defining the construction of a feature can be either asupporting edge or a concerned area of a face.In case of supporting edge, this contour can be attached to a faceof the basis shape by binding. When the contour is bound to this face,the information that the contour will slide on the face becomesavailable to the relevant class methods. In case of the concernedarea of a face, you could, for example, cut it out and move it ata different height, which will define the limiting face of aprotrusion or depression. Topological definition with localoperations of this sort makes calculations simpler and fasterthan a global operation. The latter would entail a second phase ofremoving unwanted matter to get the same result.Mechanical features include ribs - protrusions - and grooves (orslots) - depressions along planar (linear) surfaces or revolution surfaces.The semantics of mechanical features is based on givingthickness to a contour. This thickness can either be unilateral- on one side of the contour - or bilateral - on both sides. As inthe semantics of form features, the thickness is defined byconstruction of shapes in specific contexts.However, in case of mechanical features, development contextsdiffer. Here they include extrusion:- to a limiting face of the basis shape- to or from a limiting plane- to a height.

class BRepFeat_Builder(*args)

Bases: OCC.BOPAlgo.BOPAlgo_BOP

Return type:None
CheckSolidImages()
  • Collects the images of the object, that contains in the images of the tool.
Return type:None
FillRemoved()
  • Collects the removed parts of the tool into myRemoved map.
Return type:None
  • Adds the shape S and its sub-shapes into myRemoved map.
Parameters:
  • theS (TopoDS_Shape &) –
  • theM (BOPCol_MapOfShape &) –
Return type:

None

Init()
  • Initialyzes the object of local boolean operation.
Parameters:theShape (TopoDS_Shape &) –
Return type:None
  • Initialyzes the arguments of local boolean operation.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theTool (TopoDS_Shape &) –
Return type:

None

KeepPart()
  • Adds shape theS and all its sub-shapes into myShapes map.
Parameters:theS (TopoDS_Shape &) –
Return type:None
KeepParts()
  • Initialyzes parts of the tool for second step of algorithm. Collects shapes and all sub-shapes into myShapes map.
Parameters:theIm (TopTools_ListOfShape &) –
Return type:None
PartsOfTool()
  • Collects parts of the tool.
Parameters:theLT (TopTools_ListOfShape &) –
Return type:None
PerformResult()
  • Main function to build the result of the local operation required.
Return type:None
RebuildEdge()
  • Rebuilds edges in accordance with the kept parts of the tool.
Parameters:
  • theE (TopoDS_Shape &) –
  • theF (TopoDS_Face &) –
  • theME (BOPCol_MapOfShape &) –
  • aLEIm (BOPCol_ListOfShape &) –
Return type:

None

RebuildFaces()
  • Rebuilds faces in accordance with the kept parts of the tool.
Return type:None
SetOperation()
  • Sets the operation of local boolean operation. If theFuse = 0 than the operation is CUT, otherwise FUSE.
Parameters:theFuse (int) –
Return type:None
  • Sets the operation of local boolean operation. If theFlag = True it means that no selection of parts of the tool is needed, t.e. no second part. In that case if theFuse = 0 than operation is COMMON, otherwise CUT21. If theFlag = False SetOperation(theFuse) function is called.
Parameters:
  • theFuse (int) –
  • theFlag (bool) –
Return type:

None

thisown

The membership flag

class BRepFeat_Form(*args, **kwargs)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

BarycCurve()
Return type:Handle_Geom_Curve
BasisShapeValid()
  • Initializes the topological construction if the basis shape is present.
Return type:None
CurrentStatusError()
Return type:BRepFeat_StatusError
Curves()
Parameters:S (TColGeom_SequenceOfCurve &) –
Return type:void
FirstShape()
  • Returns the list of shapes created at the bottom of the created form. It may be an empty list.
Return type:TopTools_ListOfShape
GeneratedShapeValid()
  • Initializes the topological construction if the generated shape S is present.
Return type:None
GluedFacesValid()
  • Initializes the topological construction if the glued face is present.
Return type:None
LastShape()
  • Returns the list of shapes created at the top of the created form. It may be an empty list.
Return type:TopTools_ListOfShape
NewEdges()
  • Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list.
Return type:TopTools_ListOfShape
PerfSelectionValid()
  • Initializes the topological construction if the selected face is present.
Return type:None
ShapeFromValid()
  • Initializes the topological construction if the shape is present from the specified integer on.
Return type:None
ShapeUntilValid()
  • Initializes the topological construction if the shape is present until the specified integer.
Return type:None
SketchFaceValid()
  • Initializes the topological construction if the sketch face is present. If the sketch face is inside the basis shape, local operations such as glueing can be performed.
Return type:None
TgtEdges()
  • Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet.
Return type:TopTools_ListOfShape
thisown

The membership flag

class BRepFeat_Gluer(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

  • Initializes an empty constructor
Return type:None
  • Initializes the shapes to be glued, the new shape Snew and the basis shape Sbase.
Parameters:
  • Snew (TopoDS_Shape &) –
  • Sbase (TopoDS_Shape &) –
Return type:

None

BasisShape()
  • Returns the basis shape of the compound shape.
Return type:TopoDS_Shape
Bind()
  • Defines a contact between Fnew on the new shape Snew and Fbase on the basis shape Sbase. Informs other methods that Fnew in the new shape Snew is connected to the face Fbase in the basis shape Sbase. The contact faces of the glued shape must not have parts outside the contact faces of the basis shape. This indicates that glueing is possible.
Parameters:
  • Fnew (TopoDS_Face &) –
  • Fbase (TopoDS_Face &) –
Return type:

None

  • nforms other methods that the edge Enew in the new shape is the same as the edge Ebase in the basis shape and is therefore attached to the basis shape. This indicates that glueing is possible.
Parameters:
  • Enew (TopoDS_Edge &) –
  • Ebase (TopoDS_Edge &) –
Return type:

None

GluedShape()
  • Returns the resulting compound shape.
Return type:TopoDS_Shape
Init()
  • Initializes the new shape Snew and the basis shape Sbase for the local glueing operation.
Parameters:
  • Snew (TopoDS_Shape &) –
  • Sbase (TopoDS_Shape &) –
Return type:

None

OpeType()
  • Determine which operation type to use glueing or sliding.
Return type:LocOpe_Operation
thisown

The membership flag

class BRepFeat_MakeCylindricalHole(*args)

Bases: OCC.BRepFeat.BRepFeat_Builder

  • Empty constructor.
Return type:None
Build()
  • Builds the resulting shape (redefined from MakeShape). Invalidates the given parts of tools if any, and performs the result of the local operation.
Return type:None
Init()
  • Sets the axis of the hole(s).
Parameters:Axis (gp_Ax1) –
Return type:None
  • Sets the shape and axis on which hole(s) will be performed.
Parameters:
  • S (TopoDS_Shape &) –
  • Axis (gp_Ax1) –
Return type:

None

Perform()
  • Performs every holes of radius <Radius>. This command has the same effect as a cut operation with an infinite cylinder defined by the given axis and <Radius>.
Parameters:Radius (float) –
Return type:None
  • Performs evry hole of radius <Radius> located between PFrom and PTo on the given axis. If <WithControl> is set to Standard_False no control are done on the resulting shape after the operation is performed.
Parameters:
  • Radius (float) –
  • PFrom (float) –
  • PTo (float) –
  • WithControl (bool) – default value is Standard_True
Return type:

None

PerformBlind()
  • Performs a blind hole of radius <Radius> and length <Length>. The length is measured from the origin of the given axis. If <WithControl> is set to Standard_False no control are done after the operation is performed.
Parameters:
  • Radius (float) –
  • Length (float) –
  • WithControl (bool) – default value is Standard_True
Return type:

None

PerformThruNext()
  • Performs the first hole of radius <Radius>, in the direction of the defined axis. First hole signify first encountered after the origin of the axis. If <WithControl> is set to Standard_False no control are done on the resulting shape after the operation is performed.
Parameters:
  • Radius (float) –
  • WithControl (bool) – default value is Standard_True
Return type:

None

PerformUntilEnd()
  • Performs evry holes of radius <Radius> located after the origin of the given axis. If <WithControl> is set to Standard_False no control are done on the resulting shape after the operation is performed.
Parameters:
  • Radius (float) –
  • WithControl (bool) – default value is Standard_True
Return type:

None

Status()
  • Returns the status after a hole is performed.
Return type:BRepFeat_Status
thisown

The membership flag

class BRepFeat_MakeDPrism(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

  • A face Pbase is selected in the shape Sbase to serve as the basis for the draft prism. The draft will be defined by the angle Angle and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. Initializes the draft prism class
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Face &) –
  • Skface (TopoDS_Face &) –
  • Angle (float) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

BossEdges()
  • Determination of TopEdges and LatEdges. sig = 1 -> TopEdges = FirstShape of the DPrism sig = 2 -> TOpEdges = LastShape of the DPrism
Parameters:sig (int) –
Return type:None
Init()
  • Initializes this algorithm for building draft prisms along surfaces. A face Pbase is selected in the basis shape Sbase to serve as the basis from the draft prism. The draft will be defined by the angle Angle and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Face &) –
  • Skface (TopoDS_Face &) –
  • Angle (float) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

LatEdges()
  • Returns the list of TopoDS Edges of the bottom of the boss.
Return type:TopTools_ListOfShape
Perform()
Parameters:
  • Height (float) –
  • Until (TopoDS_Shape &) –
Return type:

None

Return type:

None

  • Assigns one of the following semantics - to a height Height - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen.
Parameters:
  • From (TopoDS_Shape &) –
  • Until (TopoDS_Shape &) –
Return type:

None

PerformFromEnd()
  • Realizes a semi-infinite prism, limited by the face Funtil.
Parameters:FUntil (TopoDS_Shape &) –
Return type:None
PerformThruAll()
  • Builds an infinite prism. The infinite descendants will not be kept in the result.
Return type:None
PerformUntilEnd()
  • Realizes a semi-infinite prism, limited by the position of the prism base.
Return type:None
PerformUntilHeight()
  • Assigns both a limiting shape, Until from TopoDS_Shape, and a height, Height at which to stop generation of the prism feature.
Parameters:
  • Until (TopoDS_Shape &) –
  • Height (float) –
Return type:

None

TopEdges()
  • Returns the list of TopoDS Edges of the top of the boss.
Return type:TopTools_ListOfShape
thisown

The membership flag

class BRepFeat_MakeLinearForm(*args)

Bases: OCC.BRepFeat.BRepFeat_RibSlot

  • initializes the linear form class
Return type:None
  • contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. Direction and Direction1 give The vectors for defining the direction(s) in which thickness will be built up. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • W (TopoDS_Wire &) –
  • P (Handle_Geom_Plane &) –
  • Direction (gp_Vec) –
  • Direction1 (gp_Vec) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

Init()
  • Initializes this construction algorithm. A contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The vectors for defining the direction(s) in which thickness will be built up are given by Direction and Direction1. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • W (TopoDS_Wire &) –
  • P (Handle_Geom_Plane &) –
  • Direction (gp_Vec) –
  • Direction1 (gp_Vec) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Perform()
  • Performs a prism from the wire to the plane along the basis shape Sbase. Reconstructs the feature topologically.
Return type:None
Propagate()
Parameters:
  • L (TopTools_ListOfShape &) –
  • F (TopoDS_Face &) –
  • FPoint (gp_Pnt) –
  • LPoint (gp_Pnt) –
  • falseside (bool) –
Return type:

bool

thisown

The membership flag

class BRepFeat_MakePipe(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

  • initializes the pipe class.
Return type:None
  • A face Pbase is selected in the shape Sbase to serve as the basis for the pipe. It will be defined by the wire Spine. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Spine (TopoDS_Wire &) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

Init()
  • Initializes this algorithm for adding pipes to shapes. A face Pbase is selected in the shape Sbase to serve as the basis for the pipe. It will be defined by the wire Spine. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Spine (TopoDS_Wire &) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Perform()
Return type:None
Parameters:Until (TopoDS_Shape &) –
Return type:None
  • Assigns one of the following semantics - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen.
Parameters:
  • From (TopoDS_Shape &) –
  • Until (TopoDS_Shape &) –
Return type:

None

thisown

The membership flag

class BRepFeat_MakePrism(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

  • Builds a prism by projecting a wire along the face of a shape. Initializes the prism class.
Return type:None
  • Builds a prism by projecting a wire along the face of a shape. a face Pbase is selected in the shape Sbase to serve as the basis for the prism. The orientation of the prism will be defined by the vector Direction. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. Exceptions Standard_ConstructionError if the face does not belong to the basis or the prism shape.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Direction (gp_Dir) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

Init()
  • Initializes this algorithm for building prisms along surfaces. A face Pbase is selected in the shape Sbase to serve as the basis for the prism. The orientation of the prism will be defined by the vector Direction. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Direction (gp_Dir) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Perform()
Parameters:
  • Length (float) –
  • Until (TopoDS_Shape &) –
Return type:

None

Return type:

None

  • Assigns one of the following semantics - to a height Length - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen.
Parameters:
  • From (TopoDS_Shape &) –
  • Until (TopoDS_Shape &) –
Return type:

None

PerformFromEnd()
  • Realizes a semi-infinite prism, limited by the face Funtil.
Parameters:FUntil (TopoDS_Shape &) –
Return type:None
PerformThruAll()
  • Builds an infinite prism. The infinite descendants will not be kept in the result.
Return type:None
PerformUntilEnd()
  • Realizes a semi-infinite prism, limited by the position of the prism base. All other faces extend infinitely.
Return type:None
PerformUntilHeight()
  • Assigns both a limiting shape, Until from TopoDS_Shape, and a height, Length at which to stop generation of the prism feature.
Parameters:
  • Until (TopoDS_Shape &) –
  • Length (float) –
Return type:

None

thisown

The membership flag

class BRepFeat_MakeRevol(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

  • initializes the revolved shell class.
Return type:None
  • a face Pbase is selected in the shape Sbase to serve as the basis for the revolved shell. The revolution will be defined by the axis Axis and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Axis (gp_Ax1) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

Init()
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Pbase (TopoDS_Shape &) –
  • Skface (TopoDS_Face &) –
  • Axis (gp_Ax1) –
  • Fuse (int) –
  • Modify (bool) –
Return type:

None

Perform()
Parameters:
  • Angle (float) –
  • Until (TopoDS_Shape &) –
Return type:

None

Return type:

None

  • Reconstructs the feature topologically.
Parameters:
  • From (TopoDS_Shape &) –
  • Until (TopoDS_Shape &) –
Return type:

None

PerformThruAll()
  • Builds an infinite shell. The infinite descendants will not be kept in the result.
Return type:None
PerformUntilAngle()
  • Assigns both a limiting shape, Until from TopoDS_Shape, and an angle, Angle at which to stop generation of the revolved shell feature.
Parameters:
  • Until (TopoDS_Shape &) –
  • Angle (float) –
Return type:

None

thisown

The membership flag

class BRepFeat_MakeRevolutionForm(*args)

Bases: OCC.BRepFeat.BRepFeat_RibSlot

  • initializes the linear form class.
Return type:None
  • a contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The axis Axis of the revolved surface in the basis shape defines the feature’s axis of revolution. Height1 and Height2 may be used as limits to the construction of the feature. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • W (TopoDS_Wire &) –
  • Plane (Handle_Geom_Plane &) –
  • Axis (gp_Ax1) –
  • Height1 (float) –
  • Height2 (float) –
  • Fuse (int) –
  • Sliding (bool) –
Return type:

None

Add()
  • Indicates that the edge <E> will slide on the face <OnFace>. Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape.
Parameters:
  • E (TopoDS_Edge &) –
  • OnFace (TopoDS_Face &) –
Return type:

None

Init()
  • Initializes this construction algorithm A contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The axis Axis of the revolved surface in the basis shape defines the feature’s axis of revolution. Height1 and Height2 may be used as limits to the construction of the feature. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib.
Parameters:
  • Sbase (TopoDS_Shape &) –
  • W (TopoDS_Wire &) –
  • Plane (Handle_Geom_Plane &) –
  • Axis (gp_Ax1) –
  • Height1 (float) –
  • Height2 (float) –
  • Fuse (int) –
  • Sliding (bool) –
Return type:

None

Perform()
  • Performs a prism from the wire to the plane along the basis shape S. Reconstructs the feature topologically.
Return type:None
Propagate()
Parameters:
  • L (TopTools_ListOfShape &) –
  • F (TopoDS_Face &) –
  • FPoint (gp_Pnt) –
  • LPoint (gp_Pnt) –
  • falseside (bool) –
Return type:

bool

thisown

The membership flag

class BRepFeat_RibSlot(*args, **kwargs)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

static ChoiceOfFaces()
Parameters:
  • faces (TopTools_ListOfShape &) –
  • cc (Handle_Geom_Curve &) –
  • par (float) –
  • bnd (float) –
  • Pln (Handle_Geom_Plane &) –
Return type:

TopoDS_Face

CurrentStatusError()
Return type:BRepFeat_StatusError
FacesForDraft()
  • Returns a list of the limiting and glueing faces generated by the feature. These faces did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of a draft to a face. It may be an empty list. If a face has tangent edges, no draft is possible, and the tangent edges must subsequently be removed if you want to add a draft to the face.
Return type:TopTools_ListOfShape
FirstShape()
  • Returns the list of shapes created at the bottom of the created form. It may be an empty list.
Return type:TopTools_ListOfShape
static IntPar()
Parameters:
  • C (Handle_Geom_Curve &) –
  • P (gp_Pnt) –
Return type:

float

LastShape()
  • Returns the list of shapes created at the top of the created form. It may be an empty list.
Return type:TopTools_ListOfShape
NewEdges()
  • Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list.
Return type:TopTools_ListOfShape
TgtEdges()
  • Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet.
Return type:TopTools_ListOfShape
thisown

The membership flag

BRepFeat_RibSlot_ChoiceOfFaces()
Parameters:
  • faces (TopTools_ListOfShape &) –
  • cc (Handle_Geom_Curve &) –
  • par (float) –
  • bnd (float) –
  • Pln (Handle_Geom_Plane &) –
Return type:

TopoDS_Face

BRepFeat_RibSlot_IntPar()
Parameters:
  • C (Handle_Geom_Curve &) –
  • P (gp_Pnt) –
Return type:

float

class BRepFeat_SplitShape(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

  • Empty constructor
Return type:None
  • Creates the process with the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
Add()
  • Adds the wire <W> on the face <F>. Raises NoSuchObject if <F> does not belong to the original shape.
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
Return type:

None

  • Adds the edge <E> on the face <F>.
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

None

  • Adds the compound <Comp> on the face <F>. The compound <Comp> must consist of edges lying on the face <F>. If edges are geometrically connected, they must be connected topologically, i.e. they must share common vertices. //! Raises NoSuchObject if <F> does not belong to the original shape.
Parameters:
  • Comp (TopoDS_Compound &) –
  • F (TopoDS_Face &) –
Return type:

None

  • Adds the edge <E> on the existing edge <EOn>.
Parameters:
  • E (TopoDS_Edge &) –
  • EOn (TopoDS_Edge &) –
Return type:

None

DirectLeft()
  • Returns the faces which are the left of the projected wires.
Return type:TopTools_ListOfShape
Init()
  • Initializes the process on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
Left()
  • Returns the faces of the ‘left’ part on the shape. (It is build from DirectLeft, with the faces connected to this set, and so on…). Raises NotDone if IsDone returns <Standard_False>.
Return type:TopTools_ListOfShape
SetCheckInterior()
  • Set the flag of check internal intersections default value is True (to check)
Parameters:ToCheckInterior (bool) –
Return type:None
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class brepfeat

Bases: object

static Barycenter()
Parameters:
  • S (TopoDS_Shape &) –
  • Pt (gp_Pnt) –
Return type:

void

static FaceUntil()
Parameters:
  • S (TopoDS_Shape &) –
  • F (TopoDS_Face &) –
Return type:

void

static IsInside()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

static ParametricBarycenter()
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
Return type:

float

static ParametricMinMax()
  • Ori = True taking account the orientation
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
  • prmin (float &) –
  • prmax (float &) –
  • prbmin (float &) –
  • prbmax (float &) –
  • flag (bool) –
  • Ori (bool) – default value is Standard_False
Return type:

void

static Print()
  • Prints the Error description of the State <St> as a String on the Stream <S> and returns <S>.
Parameters:
  • SE (BRepFeat_StatusError) –
  • S (Standard_OStream &) –
Return type:

Standard_OStream

static SampleEdges()
Parameters:
Return type:

void

static Tool()
Parameters:
  • SRef (TopoDS_Shape &) –
  • Fac (TopoDS_Face &) –
  • Orf (TopAbs_Orientation) –
Return type:

TopoDS_Solid

thisown

The membership flag

brepfeat_Barycenter()
Parameters:
  • S (TopoDS_Shape &) –
  • Pt (gp_Pnt) –
Return type:

void

brepfeat_FaceUntil()
Parameters:
  • S (TopoDS_Shape &) –
  • F (TopoDS_Face &) –
Return type:

void

brepfeat_IsInside()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

brepfeat_ParametricBarycenter()
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
Return type:

float

brepfeat_ParametricMinMax()
  • Ori = True taking account the orientation
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
  • prmin (float &) –
  • prmax (float &) –
  • prbmin (float &) –
  • prbmax (float &) –
  • flag (bool) –
  • Ori (bool) – default value is Standard_False
Return type:

void

brepfeat_Print()
  • Prints the Error description of the State <St> as a String on the Stream <S> and returns <S>.
Parameters:
  • SE (BRepFeat_StatusError) –
  • S (Standard_OStream &) –
Return type:

Standard_OStream

brepfeat_SampleEdges()
Parameters:
Return type:

void

brepfeat_Tool()
Parameters:
  • SRef (TopoDS_Shape &) –
  • Fac (TopoDS_Face &) –
  • Orf (TopAbs_Orientation) –
Return type:

TopoDS_Solid

new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases