OCC.LocOpe module

class OCC.LocOpe.Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_GeneratedShape(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_GluedShape(*args)

Bases: OCC.LocOpe.Handle_LocOpe_GeneratedShape

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_HBuilder(*args)

Bases: OCC.TopOpeBRepBuild.Handle_TopOpeBRepBuild_HBuilder

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_ProjectedWires(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_SequenceNodeOfSequenceOfCirc(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_SequenceNodeOfSequenceOfLin(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.LocOpe.Handle_LocOpe_WiresOnShape(*args)

Bases: OCC.LocOpe.Handle_LocOpe_ProjectedWires

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

The membership flag

class OCC.LocOpe.LocOpe_BuildShape(*args)

Bases: object

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 OCC.LocOpe.LocOpe_BuildWires(*args)

Bases: object

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

None

Result()
Return type:TopTools_ListOfShape
thisown

The membership flag

class OCC.LocOpe.LocOpe_CSIntersector(*args)

Bases: object

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 (Standard_Integer) –
  • From (float) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
  • FromInd (Standard_Integer) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
  • From (float) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
  • FromInd (Standard_Integer) –
  • Tol (float) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
Return type:

bool

NbPoints()
  • Returns the number of intersection point on the element of range <I>.
Parameters:I (Standard_Integer) –
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:
  • I (Standard_Integer) –
  • Index (Standard_Integer) –
Return type:

LocOpe_PntFace

thisown

The membership flag

class OCC.LocOpe.LocOpe_CurveShapeIntersector(*args)

Bases: object

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 (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
  • Or (TopAbs_Orientation &) –
  • IndFrom (Standard_Integer &) –
  • IndTo (Standard_Integer &) –
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 (Standard_Integer) –
Return type:LocOpe_PntFace
thisown

The membership flag

class OCC.LocOpe.LocOpe_DPrism(*args)

Bases: object

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 OCC.LocOpe.LocOpe_DataMapIteratorOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class OCC.LocOpe.LocOpe_DataMapNodeOfDataMapOfShapePnt(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

LocOpe_DataMapNodeOfDataMapOfShapePnt_GetHandle(LocOpe_DataMapNodeOfDataMapOfShapePnt self) -> Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt

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

The membership flag

class OCC.LocOpe.LocOpe_DataMapOfShapePnt(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

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 (Standard_Integer) –
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 OCC.LocOpe.LocOpe_FindEdges(*args)

Bases: object

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 OCC.LocOpe.LocOpe_FindEdgesInFace(*args)

Bases: object

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

LocOpe_GeneratedShape_GetHandle(LocOpe_GeneratedShape self) -> Handle_LocOpe_GeneratedShape

OrientedFaces()
  • Returns the list of correctly oriented generated faces.
Return type:TopTools_ListOfShape
thisown

The membership flag

class OCC.LocOpe.LocOpe_Generator(*args)

Bases: object

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 OCC.LocOpe.LocOpe_GluedShape(*args)

Bases: OCC.LocOpe.LocOpe_GeneratedShape

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()

LocOpe_GluedShape_GetHandle(LocOpe_GluedShape self) -> Handle_LocOpe_GluedShape

GlueOnFace()
Parameters:F (TopoDS_Face &) –
Return type:None
Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
thisown

The membership flag

class OCC.LocOpe.LocOpe_Gluer(*args)

Bases: object

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 OCC.LocOpe.LocOpe_HBuilder(*args)

Bases: OCC.TopOpeBRepBuild.TopOpeBRepBuild_HBuilder

Classify()
Return type:bool
Parameters:B (bool) –
Return type:None
GetHandle()

LocOpe_HBuilder_GetHandle(LocOpe_HBuilder self) -> Handle_LocOpe_HBuilder

thisown

The membership flag

class OCC.LocOpe.LocOpe_LinearForm(*args)

Bases: object

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 OCC.LocOpe.LocOpe_Pipe(*args)

Bases: object

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 OCC.LocOpe.LocOpe_PntFace(*args)

Bases: object

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 OCC.LocOpe.LocOpe_Prism(*args)

Bases: object

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

Bases: OCC.MMgt.MMgt_TShared

Edge()
Return type:TopoDS_Edge
GetHandle()

LocOpe_ProjectedWires_GetHandle(LocOpe_ProjectedWires self) -> Handle_LocOpe_ProjectedWires

InitEdgeIterator()
Return type:void
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:void
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

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

thisown

The membership flag

class OCC.LocOpe.LocOpe_SequenceNodeOfSequenceOfCirc(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

LocOpe_SequenceNodeOfSequenceOfCirc_GetHandle(LocOpe_SequenceNodeOfSequenceOfCirc self) -> Handle_LocOpe_SequenceNodeOfSequenceOfCirc

Value()
Return type:gp_Circ
thisown

The membership flag

class OCC.LocOpe.LocOpe_SequenceNodeOfSequenceOfLin(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

LocOpe_SequenceNodeOfSequenceOfLin_GetHandle(LocOpe_SequenceNodeOfSequenceOfLin self) -> Handle_LocOpe_SequenceNodeOfSequenceOfLin

Value()
Return type:gp_Lin
thisown

The membership flag

class OCC.LocOpe.LocOpe_SequenceNodeOfSequenceOfPntFace(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

LocOpe_SequenceNodeOfSequenceOfPntFace_GetHandle(LocOpe_SequenceNodeOfSequenceOfPntFace self) -> Handle_LocOpe_SequenceNodeOfSequenceOfPntFace

Value()
Return type:LocOpe_PntFace
thisown

The membership flag

class OCC.LocOpe.LocOpe_SequenceOfCirc

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:gp_Circ
Clear()
Return type:None
First()
Return type:gp_Circ
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (gp_Circ) –
  • Index
  • S (LocOpe_SequenceOfCirc &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (LocOpe_SequenceOfCirc &) –
Return type:LocOpe_SequenceOfCirc
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (gp_Circ) –
Return type:

None

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

None

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

The membership flag

class OCC.LocOpe.LocOpe_SequenceOfLin

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:gp_Lin
Clear()
Return type:None
First()
Return type:gp_Lin
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (gp_Lin) –
  • Index
  • S (LocOpe_SequenceOfLin &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (LocOpe_SequenceOfLin &) –
Return type:LocOpe_SequenceOfLin
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (gp_Lin) –
Return type:

None

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

None

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

The membership flag

class OCC.LocOpe.LocOpe_SequenceOfPntFace

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:LocOpe_PntFace
Clear()
Return type:None
First()
Return type:LocOpe_PntFace
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (LocOpe_PntFace &) –
  • Index
  • S (LocOpe_SequenceOfPntFace &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class OCC.LocOpe.LocOpe_SplitDrafts(*args)

Bases: object

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 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 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 OCC.LocOpe.LocOpe_SplitShape(*args)

Bases: object

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 OCC.LocOpe.LocOpe_Spliter(*args)

Bases: object

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_ProjectedWires &) –
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 OCC.LocOpe.LocOpe_WiresOnShape(*args)

Bases: OCC.LocOpe.LocOpe_ProjectedWires

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
GetHandle()

LocOpe_WiresOnShape_GetHandle(LocOpe_WiresOnShape self) -> Handle_LocOpe_WiresOnShape

Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
IsDone()
Return type:bool
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

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

Bases: object

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

The membership flag

value()
class OCC.LocOpe.locope(*args, **kwargs)

Bases: object

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

void

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

OCC.LocOpe.locope_Closed(*args)
  • 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

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

void

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

bool