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
-
static
-
class
Handle_LocOpe_GeneratedShape
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_GluedShape
(*args)¶ Bases:
OCC.LocOpe.Handle_LocOpe_GeneratedShape
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_HBuilder
(*args)¶ Bases:
OCC.TopOpeBRepBuild.Handle_TopOpeBRepBuild_HBuilder
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_SequenceNodeOfSequenceOfCirc
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_SequenceNodeOfSequenceOfLin
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_SequenceNodeOfSequenceOfPntFace
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_LocOpe_WiresOnShape
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
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: Parameters: - Ledges (TopTools_ListOfShape &) –
- PW (Handle_LocOpe_WiresOnShape &) –
Return type: -
Perform
()¶ Parameters: - Ledges (TopTools_ListOfShape &) –
- PW (Handle_LocOpe_WiresOnShape &) –
Return type:
-
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 -
Init
()¶ - Performs the intersection between <Ax1 and <S>.
Parameters: S (TopoDS_Shape &) – Return type: None
-
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: Return type: - 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: Return type:
-
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: Return type: - 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: Return type:
-
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: Return type: Return type:
-
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:
-
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: - Creates and performs yte intersection betwwen <C> and <S>.
Parameters: - C (gp_Circ) –
- S (TopoDS_Shape &) –
Return type: -
Init
()¶ - Performs the intersection between <Ax1 and <S>.
Parameters: - Axis (gp_Ax1) –
- S (TopoDS_Shape &) –
Return type: - Performs the intersection between <Ax1 and <S>.
Parameters: - C (gp_Circ) –
- S (TopoDS_Shape &) –
Return type:
-
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: - 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:
-
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: - 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:
-
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: Return type: Return type: -
BarycCurve
()¶ Return type: Handle_Geom_Curve
-
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_DataMapIteratorOfDataMapOfShapePnt
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (LocOpe_DataMapOfShapePnt &) – Return type: None -
Key
()¶ Return type: TopoDS_Shape
-
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: -
GetHandle
()¶
-
Key
()¶ Return type: TopoDS_Shape
-
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
-
ChangeFind1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set
()¶ Parameters: Other (LocOpe_DataMapOfShapePnt &) – Return type: LocOpe_DataMapOfShapePnt
-
thisown
¶ The membership flag
-
-
class
LocOpe_FindEdges
(*args)¶ Bases:
object
Return type: Parameters: - FFrom (TopoDS_Shape &) –
- FTo (TopoDS_Shape &) –
Return type: -
EdgeFrom
()¶ Return type: TopoDS_Edge
-
EdgeTo
()¶ Return type: TopoDS_Edge
-
thisown
¶ The membership flag
-
class
LocOpe_FindEdgesInFace
(*args)¶ Bases:
object
Return type: Parameters: - S (TopoDS_Shape &) –
- F (TopoDS_Face &) –
Return type: -
Edge
()¶ Return type: TopoDS_Edge
-
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
-
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
()¶
-
thisown
¶ The membership flag
-
-
class
LocOpe_Gluer
(*args)¶ Bases:
object
Return type: Parameters: - Sbase (TopoDS_Shape &) –
- Snew (TopoDS_Shape &) –
Return type: -
BasisShape
()¶ Return type: TopoDS_Shape
-
Bind
()¶ Parameters: - Fnew (TopoDS_Face &) –
- Fbase (TopoDS_Face &) –
- Enew (TopoDS_Edge &) –
- Ebase (TopoDS_Edge &) –
Return type: Return type:
-
DescendantFaces
()¶ Parameters: F (TopoDS_Face &) – Return type: TopTools_ListOfShape
-
Edges
()¶ Return type: TopTools_ListOfShape
-
GluedShape
()¶ Return type: TopoDS_Shape
-
OpeType
()¶ Return type: LocOpe_Operation
-
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 -
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
LocOpe_LinearForm
(*args)¶ Bases:
object
Return type: Parameters: Return type: Return type: -
FirstShape
()¶ Return type: TopoDS_Shape
-
LastShape
()¶ Return type: TopoDS_Shape
-
Perform
()¶ Parameters: Return type: Return type:
-
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: -
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: Parameters: Return type: -
ChangeOrientation
()¶ Return type: TopAbs_Orientation
-
Face
()¶ Return type: TopoDS_Face
-
Orientation
()¶ Return type: TopAbs_Orientation
-
thisown
¶ The membership flag
-
class
LocOpe_Prism
(*args)¶ Bases:
object
Return type: Parameters: Return type: Return type: -
BarycCurve
()¶ Return type: Handle_Geom_Curve
-
FirstShape
()¶ Return type: TopoDS_Shape
-
LastShape
()¶ Return type: TopoDS_Shape
-
Perform
()¶ Parameters: Return type: Return type:
-
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: -
GetHandle
()¶
-
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: -
GetHandle
()¶
-
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: -
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 -
Assign
()¶ Parameters: Other (LocOpe_SequenceOfCirc &) – Return type: LocOpe_SequenceOfCirc
-
InsertAfter
()¶ Parameters: Return type: Return type:
-
InsertBefore
()¶ Parameters: Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (LocOpe_SequenceOfCirc &) – Return type: LocOpe_SequenceOfCirc
-
thisown
¶ The membership flag
-
-
class
LocOpe_SequenceOfLin
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (LocOpe_SequenceOfLin &) – Return type: None -
Assign
()¶ Parameters: Other (LocOpe_SequenceOfLin &) – Return type: LocOpe_SequenceOfLin
-
InsertAfter
()¶ Parameters: Return type: Return type:
-
InsertBefore
()¶ Parameters: Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (LocOpe_SequenceOfLin &) – Return type: LocOpe_SequenceOfLin
-
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: Return type:
-
Assign
()¶ Parameters: Other (LocOpe_SequenceOfPntFace &) – Return type: LocOpe_SequenceOfPntFace
-
ChangeValue
()¶ Parameters: Index (int) – Return type: LocOpe_PntFace
-
First
()¶ Return type: LocOpe_PntFace
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (LocOpe_PntFace &) –
- Index –
- S (LocOpe_SequenceOfPntFace &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (LocOpe_PntFace &) –
- Index –
- S (LocOpe_SequenceOfPntFace &) –
Return type: Return type:
-
Last
()¶ Return type: LocOpe_PntFace
-
Prepend
()¶ Parameters: - T (LocOpe_PntFace &) –
- S (LocOpe_SequenceOfPntFace &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (LocOpe_SequenceOfPntFace &) – Return type: LocOpe_SequenceOfPntFace
-
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: Return type: - 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: Return type:
-
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: - Adds the wire <W> on the face <F>.
Parameters: - W (TopoDS_Wire &) –
- F (TopoDS_Face &) –
Return type: - Adds the list of wires <Lwires> on the face <F>.
Parameters: - Lwires (TopTools_ListOfShape &) –
- F (TopoDS_Face &) –
Return type:
-
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
-
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:
-
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
-
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
-
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: Return type: Return type: Return type:
-
Edge
()¶ Return type: TopoDS_Edge
-
GetHandle
()¶
-
IsFaceWithSection
()¶ - tells is the face to be split by section or not
Parameters: aFace (TopoDS_Shape &) – 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: - 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:
-
OnFace
()¶ - Returns the face of the shape on which the current edge is projected.
Return type: TopoDS_Face
-
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: - Returns Standard_True when the edge <E> is closed on the face <OnF>.
Parameters: - E (TopoDS_Edge &) –
- OnF (TopoDS_Face &) –
Return type:
-
static
SampleEdges
()¶ Parameters: - S (TopoDS_Shape &) –
- Pt (TColgp_SequenceOfPnt) –
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:
-
thisown
¶ The membership flag
-
static
-
locope_Closed
()¶ - Returns Standard_True when the wire <W> is closed on the face <OnF>.
Parameters: - W (TopoDS_Wire &) –
- OnF (TopoDS_Face &) –
Return type: - Returns Standard_True when the edge <E> is closed on the face <OnF>.
Parameters: - E (TopoDS_Edge &) –
- OnF (TopoDS_Face &) –
Return type:
-
locope_SampleEdges
()¶ Parameters: - S (TopoDS_Shape &) –
- Pt (TColgp_SequenceOfPnt) –
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:
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases