OCC.BRepFeat module

class OCC.BRepFeat.BRepFeat_Builder

Bases: object

CheckSolidImages()
  • Collects the images of the object, that contains in the images of the tool.
Return type:None
Clear()
  • Clears internal fields and arguments.
Return type:void
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 (Standard_Integer) –
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 (Standard_Integer) –
  • theFlag (bool) –
Return type:

None

thisown

The membership flag

class OCC.BRepFeat.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 OCC.BRepFeat.BRepFeat_Gluer(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

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 OCC.BRepFeat.BRepFeat_MakeCylindricalHole

Bases: OCC.BRepFeat.BRepFeat_Builder

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

  • 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

  • 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

  • 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

  • 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 OCC.BRepFeat.BRepFeat_MakeDPrism(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

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 (Standard_Integer) –
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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_MakeLinearForm(*args)

Bases: OCC.BRepFeat.BRepFeat_RibSlot

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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_MakePipe(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_MakePrism(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_MakeRevol(*args)

Bases: OCC.BRepFeat.BRepFeat_Form

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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_MakeRevolutionForm(*args)

Bases: OCC.BRepFeat.BRepFeat_RibSlot

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 (Standard_Integer) –
  • 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 OCC.BRepFeat.BRepFeat_RibSlot(*args, **kwargs)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

static ChoiceOfFaces(*args)
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(*args)
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

OCC.BRepFeat.BRepFeat_RibSlot_ChoiceOfFaces(*args)
Parameters:
  • faces (TopTools_ListOfShape &) –
  • cc (Handle_Geom_Curve &) –
  • par (float) –
  • bnd (float) –
  • Pln (Handle_Geom_Plane &) –
Return type:

TopoDS_Face

OCC.BRepFeat.BRepFeat_RibSlot_IntPar(*args)
Parameters:
  • C (Handle_Geom_Curve &) –
  • P (gp_Pnt) –
Return type:

float

class OCC.BRepFeat.BRepFeat_SplitShape(*args)

Bases: OCC.BRepBuilderAPI.BRepBuilderAPI_MakeShape

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 OCC.BRepFeat.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class OCC.BRepFeat.brepfeat(*args, **kwargs)

Bases: object

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

void

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

void

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

bool

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

float

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

  • 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(*args)
  • 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(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • Pt (TColgp_SequenceOfPnt) –
Return type:

void

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

TopoDS_Solid

thisown

The membership flag

OCC.BRepFeat.brepfeat_Barycenter(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • Pt (gp_Pnt) –
Return type:

void

OCC.BRepFeat.brepfeat_FaceUntil(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • F (TopoDS_Face &) –
Return type:

void

OCC.BRepFeat.brepfeat_IsInside(*args)
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

OCC.BRepFeat.brepfeat_ParametricBarycenter(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
Return type:

float

OCC.BRepFeat.brepfeat_ParametricMinMax(*args)
  • 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

  • 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

OCC.BRepFeat.brepfeat_Print(*args)
  • 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

OCC.BRepFeat.brepfeat_SampleEdges(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • Pt (TColgp_SequenceOfPnt) –
Return type:

void

OCC.BRepFeat.brepfeat_Tool(*args)
Parameters:
  • SRef (TopoDS_Shape &) –
  • Fac (TopoDS_Face &) –
  • Orf (TopAbs_Orientation) –
Return type:

TopoDS_Solid