OCC.LocOpe module

Provides tools to implement local topologicaloperations on a shape.

class Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_LocOpe_GeneratedShape(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class Handle_LocOpe_GluedShape(*args)

Bases: OCC.LocOpe.Handle_LocOpe_GeneratedShape

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

The membership flag

class Handle_LocOpe_HBuilder(*args)

Bases: OCC.TopOpeBRepBuild.Handle_TopOpeBRepBuild_HBuilder

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

The membership flag

class Handle_LocOpe_SequenceNodeOfSequenceOfCirc(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_LocOpe_SequenceNodeOfSequenceOfLin(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class Handle_LocOpe_WiresOnShape(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class LocOpe_BuildShape(*args)

Bases: object

Return type:None
  • Builds shape(s) from the list <L>. Uses only the faces of <L>.
Parameters:L (TopTools_ListOfShape &) –
Return type:None
Perform()
  • Builds shape(s) from the list <L>. Uses only the faces of <L>.
Parameters:L (TopTools_ListOfShape &) –
Return type:None
Shape()
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_BuildWires(*args)

Bases: object

Return type:

None

Parameters:
  • Ledges (TopTools_ListOfShape &) –
  • PW (Handle_LocOpe_WiresOnShape &) –
Return type:

None

IsDone()
Return type:bool
Perform()
Parameters:
  • Ledges (TopTools_ListOfShape &) –
  • PW (Handle_LocOpe_WiresOnShape &) –
Return type:

None

Result()
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_CSIntersector(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates and performs the intersection betwwen <Ax1> and <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
Destroy()
Return type:None
Init()
  • Performs the intersection between <Ax1 and <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
IsDone()
  • Returns <Standard_True> if the intersection has been done.
Return type:bool
LocalizeAfter()
  • On the element of range <I>, searches the first intersection point located after the parameter <From>, wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). <Tol> is used to determine if 2 parameters are equal. //! Otherwise, returns <Standard_False>.
Parameters:
  • I (int) –
  • From (float) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

  • On the element of range <I>, searches the first intersection point located after the index <FromInd> ( >= FromInd + 1), wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). <Tol> is used to determine if 2 parameters are equal. //! Otherwise, returns <Standard_False>.
Parameters:
  • I (int) –
  • FromInd (int) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

LocalizeBefore()
  • On the element of range <I>, searches the first intersection point located before the parameter <From>, wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). <Tol> is used to determine if 2 parameters are equal. //! Otherwise, returns <Standard_False>.
Parameters:
  • I (int) –
  • From (float) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

  • On the element of range <I>, searches the first intersection point located before the index <FromInd> ( <= FromInd -1), wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). <Tol> is used to determine if 2 parameters are equal. //! Otherwise, returns <Standard_False>.
Parameters:
  • I (int) –
  • FromInd (int) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

NbPoints()
  • Returns the number of intersection point on the element of range <I>.
Parameters:I (int) –
Return type:int
Perform()
Parameters:
  • Slin (LocOpe_SequenceOfLin &) –
  • Scir (LocOpe_SequenceOfCirc &) –
  • Scur (TColGeom_SequenceOfCurve &) –
Return type:

None

Return type:

None

Return type:

None

Point()
  • Returns the intersection point of range <Index> on element of range <I>. The points are sorted in increasing order of parameter along the axis.
Parameters:
Return type:

LocOpe_PntFace

thisown

The membership flag

class LocOpe_CurveShapeIntersector(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates and performs the intersection betwwen <Ax1> and <S>.
Parameters:
  • Axis (gp_Ax1) –
  • S (TopoDS_Shape &) –
Return type:

None

  • Creates and performs yte intersection betwwen <C> and <S>.
Parameters:
  • C (gp_Circ) –
  • S (TopoDS_Shape &) –
Return type:

None

Init()
  • Performs the intersection between <Ax1 and <S>.
Parameters:
  • Axis (gp_Ax1) –
  • S (TopoDS_Shape &) –
Return type:

None

  • Performs the intersection between <Ax1 and <S>.
Parameters:
  • C (gp_Circ) –
  • S (TopoDS_Shape &) –
Return type:

None

IsDone()
  • Returns <Standard_True> if the intersection has been done.
Return type:bool
LocalizeAfter()
  • Searches the first intersection point located after the parameter <From>, wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). //! Otherwise, returns <Standard_False>.
Parameters:
  • From (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

  • Searches the first intersection point located after the index <FromInd> ( >= FromInd + 1), wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point. (IndFrom <= IndTo). //! Otherwise, returns <Standard_False>.
Parameters:
  • FromInd (int) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

LocalizeBefore()
  • Searches the first intersection point located before the parameter <From>, wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). //! Otherwise, returns <Standard_False>.
Parameters:
  • From (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

  • Searches the first intersection point located before the index <FromInd> ( <= FromInd -1), wich orientation is not TopAbs_EXTERNAL. If found, returns <Standard_True>. <Or> contains the orientation of the point, <IndFrom> and <IndTo> represents the interval of index in the sequence of intersection point corresponding to the point (IndFrom <= IndTo). //! Otherwise, returns <Standard_False>.
Parameters:
  • FromInd (int) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (int &) –
  • IndTo (int &) –
Return type:

bool

NbPoints()
  • Returns the number of intersection point.
Return type:int
Point()
  • Returns the intersection point of range <Index>. The points are sorted in increasing order of parameter along the axis.
Parameters:Index (int) –
Return type:LocOpe_PntFace
thisown

The membership flag

class LocOpe_DPrism(*args)

Bases: object

Parameters:
  • Spine (TopoDS_Face &) –
  • Height1 (float) –
  • Height2 (float) –
  • Angle (float) –
  • Spine
  • Height (float) –
  • Angle
Return type:

None

Return type:

None

BarycCurve()
Return type:Handle_Geom_Curve
Curves()
Parameters:SCurves (TColGeom_SequenceOfCurve &) –
Return type:None
FirstShape()
Return type:TopoDS_Shape
IsDone()
Return type:bool
LastShape()
Return type:TopoDS_Shape
Profile()
Return type:TopoDS_Shape
Shape()
Return type:TopoDS_Shape
Shapes()
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
Spine()
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_DataMapIteratorOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Return type:None
Parameters:aMap (LocOpe_DataMapOfShapePnt &) –
Return type:None
Initialize()
Parameters:aMap (LocOpe_DataMapOfShapePnt &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:gp_Pnt
thisown

The membership flag

class LocOpe_DataMapNodeOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (TopoDS_Shape &) –
  • I (gp_Pnt) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Key()
Return type:TopoDS_Shape
Value()
Return type:gp_Pnt
thisown

The membership flag

class LocOpe_DataMapOfShapePnt(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
Assign()
Parameters:Other (LocOpe_DataMapOfShapePnt &) –
Return type:LocOpe_DataMapOfShapePnt
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (gp_Pnt) –
Return type:

bool

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

The membership flag

class LocOpe_FindEdges(*args)

Bases: object

Return type:

None

Parameters:
  • FFrom (TopoDS_Shape &) –
  • FTo (TopoDS_Shape &) –
Return type:

None

EdgeFrom()
Return type:TopoDS_Edge
EdgeTo()
Return type:TopoDS_Edge
InitIterator()
Return type:None
More()
Return type:bool
Next()
Return type:None
Set()
Parameters:
  • FFrom (TopoDS_Shape &) –
  • FTo (TopoDS_Shape &) –
Return type:

None

thisown

The membership flag

class LocOpe_FindEdgesInFace(*args)

Bases: object

Return type:

None

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

None

Edge()
Return type:TopoDS_Edge
Init()
Return type:None
More()
Return type:bool
Next()
Return type:None
Set()
Parameters:
  • S (TopoDS_Shape &) –
  • F (TopoDS_Face &) –
Return type:

None

thisown

The membership flag

class LocOpe_GeneratedShape(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Generated()
  • Returns the edge created by the vertex <V>. If none, must return a null shape.
Parameters:V (TopoDS_Vertex &) –
Return type:TopoDS_Edge
  • Returns the face created by the edge <E>. If none, must return a null shape.
Parameters:E (TopoDS_Edge &) –
Return type:TopoDS_Face
GeneratingEdges()
Return type:TopTools_ListOfShape
GetHandle()
OrientedFaces()
  • Returns the list of correctly oriented generated faces.
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_Generator(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the algorithm on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
DescendantFace()
  • Returns the descendant face of <F>. <F> may belong to the original shape or to the ‘generated’ shape. The returned face may be a null shape (when <F> disappears).
Parameters:F (TopoDS_Face &) –
Return type:TopTools_ListOfShape
Init()
  • Initializes the algorithm on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
IsDone()
Return type:bool
Perform()
Parameters:G (Handle_LocOpe_GeneratedShape &) –
Return type:None
ResultingShape()
  • Returns the new shape
Return type:TopoDS_Shape
Shape()
  • Returns the initial shape
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_GluedShape(*args)

Bases: OCC.LocOpe.LocOpe_GeneratedShape

Return type:None
Parameters:S (TopoDS_Shape &) –
Return type:None
Generated()
  • Returns the edge created by the vertex <V>. If none, must return a null shape.
Parameters:V (TopoDS_Vertex &) –
Return type:TopoDS_Edge
  • Returns the face created by the edge <E>. If none, must return a null shape.
Parameters:E (TopoDS_Edge &) –
Return type:TopoDS_Face
GetHandle()
GlueOnFace()
Parameters:F (TopoDS_Face &) –
Return type:None
Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
thisown

The membership flag

class LocOpe_Gluer(*args)

Bases: object

Return type:

None

Parameters:
  • Sbase (TopoDS_Shape &) –
  • Snew (TopoDS_Shape &) –
Return type:

None

BasisShape()
Return type:TopoDS_Shape
Bind()
Parameters:
  • Fnew (TopoDS_Face &) –
  • Fbase (TopoDS_Face &) –
  • Enew (TopoDS_Edge &) –
  • Ebase (TopoDS_Edge &) –
Return type:

None

Return type:

None

DescendantFaces()
Parameters:F (TopoDS_Face &) –
Return type:TopTools_ListOfShape
Edges()
Return type:TopTools_ListOfShape
GluedShape()
Return type:TopoDS_Shape
Init()
Parameters:
  • Sbase (TopoDS_Shape &) –
  • Snew (TopoDS_Shape &) –
Return type:

None

IsDone()
Return type:bool
OpeType()
Return type:LocOpe_Operation
Perform()
Return type:None
ResultingShape()
Return type:TopoDS_Shape
TgtEdges()
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_HBuilder(*args)

Bases: OCC.TopOpeBRepBuild.TopOpeBRepBuild_HBuilder

Parameters:BT (TopOpeBRepDS_BuildTool &) –
Return type:None
Classify()
Return type:bool
Parameters:B (bool) –
Return type:None
GetHandle()
thisown

The membership flag

class LocOpe_LinearForm(*args)

Bases: object

Return type:

None

Parameters:
  • Base (TopoDS_Shape &) –
  • V (gp_Vec) –
  • Pnt1 (gp_Pnt) –
  • Pnt2 (gp_Pnt) –
  • Base
  • V
  • Vectra (gp_Vec) –
  • Pnt1
  • Pnt2
Return type:

None

Return type:

None

FirstShape()
Return type:TopoDS_Shape
LastShape()
Return type:TopoDS_Shape
Perform()
Parameters:
  • Base (TopoDS_Shape &) –
  • V (gp_Vec) –
  • Pnt1 (gp_Pnt) –
  • Pnt2 (gp_Pnt) –
  • Base
  • V
  • Vectra (gp_Vec) –
  • Pnt1
  • Pnt2
Return type:

None

Return type:

None

Shape()
Return type:TopoDS_Shape
Shapes()
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_Pipe(*args)

Bases: object

Parameters:
  • Spine (TopoDS_Wire &) –
  • Profile (TopoDS_Shape &) –
Return type:

None

BarycCurve()
Return type:Handle_Geom_Curve
Curves()
Parameters:Spt (TColgp_SequenceOfPnt) –
Return type:TColGeom_SequenceOfCurve
FirstShape()
Return type:TopoDS_Shape
LastShape()
Return type:TopoDS_Shape
Profile()
Return type:TopoDS_Shape
Shape()
Return type:TopoDS_Shape
Shapes()
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
Spine()
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_PntFace(*args)

Bases: object

  • Empty constructor. Useful only for the list.
Return type:

None

Parameters:
  • P (gp_Pnt) –
  • F (TopoDS_Face &) –
  • Or (TopAbs_Orientation) –
  • Param (float) –
  • UPar (float) –
  • VPar (float) –
Return type:

None

ChangeOrientation()
Return type:TopAbs_Orientation
Face()
Return type:TopoDS_Face
Orientation()
Return type:TopAbs_Orientation
Parameter()
Return type:float
Pnt()
Return type:gp_Pnt
UParameter()
Return type:float
VParameter()
Return type:float
thisown

The membership flag

class LocOpe_Prism(*args)

Bases: object

Return type:

None

Parameters:
  • Base (TopoDS_Shape &) –
  • V (gp_Vec) –
  • Base
  • V
  • Vectra (gp_Vec) –
Return type:

None

Return type:

None

BarycCurve()
Return type:Handle_Geom_Curve
Curves()
Parameters:SCurves (TColGeom_SequenceOfCurve &) –
Return type:None
FirstShape()
Return type:TopoDS_Shape
LastShape()
Return type:TopoDS_Shape
Perform()
Parameters:
  • Base (TopoDS_Shape &) –
  • V (gp_Vec) –
  • Base
  • V
  • Vtra (gp_Vec) –
Return type:

None

Return type:

None

Shape()
Return type:TopoDS_Shape
Shapes()
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_SequenceNodeOfSequenceOfCirc(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (gp_Circ) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:gp_Circ
thisown

The membership flag

class LocOpe_SequenceNodeOfSequenceOfLin(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (gp_Lin) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:gp_Lin
thisown

The membership flag

class LocOpe_SequenceNodeOfSequenceOfPntFace(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (LocOpe_PntFace &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:LocOpe_PntFace
thisown

The membership flag

class LocOpe_SequenceOfCirc(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (LocOpe_SequenceOfCirc &) –
Return type:None
Append()
Parameters:
  • T (gp_Circ) –
  • S (LocOpe_SequenceOfCirc &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (LocOpe_SequenceOfCirc &) –
Return type:LocOpe_SequenceOfCirc
ChangeValue()
Parameters:Index (int) –
Return type:gp_Circ
Clear()
Return type:None
First()
Return type:gp_Circ
InsertAfter()
Parameters:
  • Index (int) –
  • T (gp_Circ) –
  • Index
  • S (LocOpe_SequenceOfCirc &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (gp_Circ) –
  • Index
  • S (LocOpe_SequenceOfCirc &) –
Return type:

None

Return type:

None

Last()
Return type:gp_Circ
Prepend()
Parameters:
  • T (gp_Circ) –
  • S (LocOpe_SequenceOfCirc &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (LocOpe_SequenceOfCirc &) –
Return type:LocOpe_SequenceOfCirc
SetValue()
Parameters:
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (LocOpe_SequenceOfCirc &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:gp_Circ
thisown

The membership flag

class LocOpe_SequenceOfLin(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (LocOpe_SequenceOfLin &) –
Return type:None
Append()
Parameters:
  • T (gp_Lin) –
  • S (LocOpe_SequenceOfLin &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (LocOpe_SequenceOfLin &) –
Return type:LocOpe_SequenceOfLin
ChangeValue()
Parameters:Index (int) –
Return type:gp_Lin
Clear()
Return type:None
First()
Return type:gp_Lin
InsertAfter()
Parameters:
  • Index (int) –
  • T (gp_Lin) –
  • Index
  • S (LocOpe_SequenceOfLin &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (gp_Lin) –
  • Index
  • S (LocOpe_SequenceOfLin &) –
Return type:

None

Return type:

None

Last()
Return type:gp_Lin
Prepend()
Parameters:
  • T (gp_Lin) –
  • S (LocOpe_SequenceOfLin &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (LocOpe_SequenceOfLin &) –
Return type:LocOpe_SequenceOfLin
SetValue()
Parameters:
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (LocOpe_SequenceOfLin &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:gp_Lin
thisown

The membership flag

class LocOpe_SequenceOfPntFace(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (LocOpe_SequenceOfPntFace &) –
Return type:None
Append()
Parameters:
  • T (LocOpe_PntFace &) –
  • S (LocOpe_SequenceOfPntFace &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (LocOpe_SequenceOfPntFace &) –
Return type:LocOpe_SequenceOfPntFace
ChangeValue()
Parameters:Index (int) –
Return type:LocOpe_PntFace
Clear()
Return type:None
First()
Return type:LocOpe_PntFace
InsertAfter()
Parameters:
  • Index (int) –
  • T (LocOpe_PntFace &) –
  • Index
  • S (LocOpe_SequenceOfPntFace &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (LocOpe_PntFace &) –
  • Index
  • S (LocOpe_SequenceOfPntFace &) –
Return type:

None

Return type:

None

Last()
Return type:LocOpe_PntFace
Prepend()
Parameters:
  • T (LocOpe_PntFace &) –
  • S (LocOpe_SequenceOfPntFace &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (LocOpe_SequenceOfPntFace &) –
Return type:LocOpe_SequenceOfPntFace
SetValue()
Parameters:
  • Index (int) –
  • I (LocOpe_PntFace &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (LocOpe_SequenceOfPntFace &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:LocOpe_PntFace
thisown

The membership flag

class LocOpe_SplitDrafts(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the algoritm on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
Init()
  • Initializes the algoritm with the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
IsDone()
  • Returns <Standard_True> if the modification has been succesfully performed.
Return type:bool
OriginalShape()
Return type:TopoDS_Shape
Perform()
  • Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on both parts of the wire. <Extractg>, <Nplg>, <Angleg> define the arguments for the left part of the wire. <Extractd>, <Npld>, <Angled> define the arguments for the right part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle. If <ModifyLeft> is set to <Standard_False>, no draft angle is applied to the left part of the wire. If <ModifyRight> is set to <Standard_False>,no draft angle is applied to the right part of the wire.
Parameters:
  • F (TopoDS_Face &) –
  • W (TopoDS_Wire &) –
  • Extractg (gp_Dir) –
  • NPlg (gp_Pln) –
  • Angleg (float) –
  • Extractd (gp_Dir) –
  • NPld (gp_Pln) –
  • Angled (float) –
  • ModifyLeft (bool) – default value is Standard_True
  • ModifyRight (bool) – default value is Standard_True
Return type:

None

  • Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on the left part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle.
Parameters:
  • F (TopoDS_Face &) –
  • W (TopoDS_Wire &) –
  • Extract (gp_Dir) –
  • NPl (gp_Pln) –
  • Angle (float) –
Return type:

None

Shape()
  • Returns the modified shape.
Return type:TopoDS_Shape
ShapesFromShape()
  • Manages the descendant shapes.
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
thisown

The membership flag

class LocOpe_SplitShape(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the process with the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
Add()
  • Adds the vertex <V> on the edge <E>, at parameter <P>.
Parameters:
  • V (TopoDS_Vertex &) –
  • P (float) –
  • E (TopoDS_Edge &) –
Return type:

None

  • Adds the wire <W> on the face <F>.
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
Return type:

None

  • Adds the list of wires <Lwires> on the face <F>.
Parameters:
  • Lwires (TopTools_ListOfShape &) –
  • F (TopoDS_Face &) –
Return type:

None

CanSplit()
  • Tests if it is possible to split the edge <E>.
Parameters:E (TopoDS_Edge &) –
Return type:bool
DescendantShapes()
  • Returns the list of descendant shapes of <S>.
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
Init()
  • Initializes the process on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
LeftOf()
  • Returns the ‘left’ part defined by the wire <W> on the face <F>. The returned list of shape is in fact a list of faces. The face <F> is considered with its topological orientation in the original shape. <W> is considered with its orientation.
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
Return type:

TopTools_ListOfShape

Shape()
  • Returns the ‘original’ shape.
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_Spliter(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the algorithm on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
DescendantShapes()
  • Returns the list of descendant shapes of <S>.
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
DirectLeft()
  • Returns the faces which are the left of the projected wires and which are
Return type:TopTools_ListOfShape
Init()
  • Initializes the algorithm on the shape <S>.
Parameters:S (TopoDS_Shape &) –
Return type:None
IsDone()
Return type:bool
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…).
Return type:TopTools_ListOfShape
Perform()
Parameters:PW (Handle_LocOpe_WiresOnShape &) –
Return type:None
ResultingShape()
  • Returns the new shape
Return type:TopoDS_Shape
Shape()
  • Returns the initial shape
Return type:TopoDS_Shape
thisown

The membership flag

class LocOpe_WiresOnShape(*args)

Bases: OCC.MMgt.MMgt_TShared

Parameters:S (TopoDS_Shape &) –
Return type:None
Bind()
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
  • Comp (TopoDS_Compound &) –
  • F
  • E (TopoDS_Edge &) –
  • F
  • EfromW (TopoDS_Edge &) –
  • EonFace (TopoDS_Edge &) –
Return type:

None

Return type:

None

Return type:

None

Return type:

None

BindAll()
Return type:None
Edge()
Return type:TopoDS_Edge
GetHandle()
Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
InitEdgeIterator()
Return type:None
IsDone()
Return type:bool
IsFaceWithSection()
  • tells is the face to be split by section or not
Parameters:aFace (TopoDS_Shape &) –
Return type:bool
MoreEdge()
Return type:bool
NextEdge()
Return type:None
OnEdge()
  • If the current edge is projected on an edge, returns <Standard_True> and sets the value of <E>. Otherwise, returns <Standard_False>.
Parameters:E (TopoDS_Edge &) –
Return type:bool
  • If the vertex <V> lies on an edge of the original shape, returns <Standard_True> and sets the concerned edge in <E>, and the parameter on the edge in <P>. Else returns <Standard_False>.
Parameters:
  • V (TopoDS_Vertex &) –
  • E (TopoDS_Edge &) –
  • P (float &) –
Return type:

bool

  • If the vertex <V> lies on an edge of the original shape, returns <Standard_True> and sets the concerned edge in <E>, and the parameter on the edge in <P>. Else returns <Standard_False>.
Parameters:
  • V (TopoDS_Vertex &) –
  • EdgeFrom (TopoDS_Edge &) –
  • E (TopoDS_Edge &) –
  • P (float &) –
Return type:

bool

OnFace()
  • Returns the face of the shape on which the current edge is projected.
Return type:TopoDS_Face
OnVertex()
Parameters:
  • Vwire (TopoDS_Vertex &) –
  • Vshape (TopoDS_Vertex &) –
Return type:

bool

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 locope

Bases: object

static Closed()
  • Returns Standard_True when the wire <W> is closed on the face <OnF>.
Parameters:
  • W (TopoDS_Wire &) –
  • OnF (TopoDS_Face &) –
Return type:

bool

  • Returns Standard_True when the edge <E> is closed on the face <OnF>.
Parameters:
  • E (TopoDS_Edge &) –
  • OnF (TopoDS_Face &) –
Return type:

bool

static SampleEdges()
Parameters:
Return type:

void

static TgtFaces()
  • Returns Standard_True when the faces are tangent
Parameters:
  • E (TopoDS_Edge &) –
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

thisown

The membership flag

locope_Closed()
  • Returns Standard_True when the wire <W> is closed on the face <OnF>.
Parameters:
  • W (TopoDS_Wire &) –
  • OnF (TopoDS_Face &) –
Return type:

bool

  • Returns Standard_True when the edge <E> is closed on the face <OnF>.
Parameters:
  • E (TopoDS_Edge &) –
  • OnF (TopoDS_Face &) –
Return type:

bool

locope_SampleEdges()
Parameters:
Return type:

void

locope_TgtFaces()
  • Returns Standard_True when the faces are tangent
Parameters:
  • E (TopoDS_Edge &) –
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

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

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