OCCBrepLoop
¤
Class representing an edge loop in the BRep of a geometric shape.
Parameters:
-
occ_wire(TopoDS_Wire) –An OCC BRep wire.
Attributes:
-
vertices(list[OCCBrepVertex]) –List of BRep vertices.
-
edges(list[OCCBrepEdge]) –List of BRep edges.
Functions¤
from_edges
classmethod
¤
from_edges(edges: list[OCCBrepEdge]) -> OCCBrepLoop
Construct a loop from a collection of edges.
Parameters:
-
edges(list[OCCBrepEdge]) –The edges.
Returns:
from_polygon
classmethod
¤
from_polygon(polygon: Polygon) -> OCCBrepLoop
from_polyline
classmethod
¤
from_polyline(polyline: Polyline) -> OCCBrepLoop
is_equal
¤
is_equal(other: OCCBrepLoop) -> bool
Check if this loop is equal to another loop.
Two loops are equal if they have the same location and orientation.
Parameters:
-
other(OCCBrepLoop) –The other loop.
Returns:
-
bool–Trueif the loops are equal,Falseotherwise.
is_same
¤
is_same(other: OCCBrepLoop) -> bool
Check if this loop is the same as another loop.
Two loops are the same if they have the same location.
Parameters:
-
other(OCCBrepLoop) –The other loop.
Returns:
-
bool–Trueif the loops are the same,Falseotherwise.