OCC.Core.TopExp module¶
TopExp module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_topexp.html
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
TopExp_Explorer
(*args)¶ Bases:
object
- Creates an empty explorer, becomes usefull after Init.
- rtype
None* Creates an Explorer on the Shape <S>. //! <ToFind> is the type of shapes to search. TopAbs_VERTEX, TopAbs_EDGE, … //! <ToAvoid> is the type of shape to skip in the exploration. If <ToAvoid> is equal or less complex than <ToFind> or if <ToAVoid> is SHAPE it has no effect on the exploration.
- param S
- type S
TopoDS_Shape
- param ToFind
- type ToFind
TopAbs_ShapeEnum
- param ToAvoid
default value is TopAbs_SHAPE
- type ToAvoid
TopAbs_ShapeEnum
- rtype
None
-
Clear
()¶ - Clears the content of the explorer. It will return False on More().
- rtype
None
-
Current
()¶ - Returns the current shape in the exploration. Exceptions Standard_NoSuchObject if this explorer has no more shapes to explore.
- rtype
TopoDS_Shape
-
Depth
()¶ - Returns the current depth of the exploration. 0 is the shape to explore itself.
- rtype
int
-
Init
()¶ - Resets this explorer on the shape S. It is initialized to search the shape S, for shapes of type ToFind, that are not part of a shape ToAvoid. If the shape ToAvoid is equal to TopAbs_SHAPE, or if it is the same as, or less complex than, the shape ToFind it has no effect on the search.
- param S
- type S
TopoDS_Shape
- param ToFind
- type ToFind
TopAbs_ShapeEnum
- param ToAvoid
default value is TopAbs_SHAPE
- type ToAvoid
TopAbs_ShapeEnum
- rtype
None
-
More
()¶ - Returns True if there are more shapes in the exploration.
- rtype
bool
-
Next
()¶ - Moves to the next Shape in the exploration. Exceptions Standard_NoMoreObject if there are no more shapes to explore.
- rtype
None
-
ReInit
()¶ - Reinitialize the exploration with the original arguments.
- rtype
None
-
Value
()¶ - Returns the current shape in the exploration. Exceptions Standard_NoSuchObject if this explorer has no more shapes to explore.
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
topexp
¶ Bases:
object
-
static
CommonVertex
()¶ - Finds the vertex <V> common to the two edges <E1,E2>, returns True if this vertex exists. //! Warning: <V> has sense only if the value <True> is returned
- param E1
- type E1
TopoDS_Edge
- param E2
- type E2
TopoDS_Edge
- param V
- type V
TopoDS_Vertex
- rtype
bool
-
static
FirstVertex
()¶ - Returns the Vertex of orientation FORWARD in E. If there is none returns a Null Shape. CumOri = Truetaking account the edge orientation
- param E
- type E
TopoDS_Edge
- param CumOri
default value is Standard_False
- type CumOri
bool
- rtype
TopoDS_Vertex
-
static
LastVertex
()¶ - Returns the Vertex of orientation REVERSED in E. If there is none returns a Null Shape. CumOri = Truetaking account the edge orientation
- param E
- type E
TopoDS_Edge
- param CumOri
default value is Standard_False
- type CumOri
bool
- rtype
TopoDS_Vertex
-
static
MapShapes
()¶ - Tool to explore a topological data structure. Stores in the map <M> all the sub-shapes of <S> of type <T>. //! Warning: The map is not cleared at first.
- param S
- type S
TopoDS_Shape
- param T
- type T
TopAbs_ShapeEnum
- param M
- type M
TopTools_IndexedMapOfShape
- rtype
void* Stores in the map <M> all the sub-shapes of <S>.
- param S
- type S
TopoDS_Shape
- param M
- type M
TopTools_IndexedMapOfShape
- rtype
void* Stores in the map <M> all the sub-shapes of <S>.
- param S
- type S
TopoDS_Shape
- param M
- type M
TopTools_MapOfShape
- rtype
void
-
static
MapShapesAndAncestors
()¶ - Stores in the map <M> all the subshape of <S> of type <TS> for each one append to the list all the ancestors of type <TA>. For example map all the edges and bind the list of faces. Warning: The map is not cleared at first.
- param S
- type S
TopoDS_Shape
- param TS
- type TS
TopAbs_ShapeEnum
- param TA
- type TA
TopAbs_ShapeEnum
- param M
- type M
TopTools_IndexedDataMapOfShapeListOfShape
- rtype
void
-
static
MapShapesAndUniqueAncestors
()¶ - Stores in the map <M> all the subshape of <S> of type <TS> for each one append to the list all unique ancestors of type <TA>. For example map all the edges and bind the list of faces. useOrientation = Truetaking account the ancestor orientation Warning: The map is not cleared at first.
- param S
- type S
TopoDS_Shape
- param TS
- type TS
TopAbs_ShapeEnum
- param TA
- type TA
TopAbs_ShapeEnum
- param M
- type M
TopTools_IndexedDataMapOfShapeListOfShape
- param useOrientation
default value is Standard_False
- type useOrientation
bool
- rtype
void
-
static
Vertices
()¶ - Returns in Vfirst, Vlast the FORWARD and REVERSED vertices of the edge <E>. May be null shapes. CumOri = Truetaking account the edge orientation
- param E
- type E
TopoDS_Edge
- param Vfirst
- type Vfirst
TopoDS_Vertex
- param Vlast
- type Vlast
TopoDS_Vertex
- param CumOri
default value is Standard_False
- type CumOri
bool
- rtype
void* Returns in Vfirst, Vlast the first and last vertices of the open wire <W>. May be null shapes. if <W> is closed Vfirst and Vlast are a same vertex on <W>. if <W> is no manifold. VFirst and VLast are null shapes.
- param W
- type W
TopoDS_Wire
- param Vfirst
- type Vfirst
TopoDS_Vertex
- param Vlast
- type Vlast
TopoDS_Vertex
- rtype
void
-
property
thisown
¶ The membership flag
-
static