Skip to content

OCCBrepLoop ¤

OCCBrepLoop(occ_wire: TopoDS_Wire)

Class representing an edge loop in the BRep of a geometric shape.

Parameters:

  • occ_wire (TopoDS_Wire) –

    An OCC BRep wire.

Attributes:

Functions¤

fix ¤

fix() -> None

Try to fix the loop.

Returns:

  • None

from_edges classmethod ¤

from_edges(edges: list[OCCBrepEdge]) -> OCCBrepLoop

Construct a loop from a collection of edges.

Parameters:

Returns:

from_polygon classmethod ¤

from_polygon(polygon: Polygon) -> OCCBrepLoop

Construct a loop from a polygon.

Parameters:

  • polygon (Polygon) –

    The polygon.

Returns:

from_polyline classmethod ¤

from_polyline(polyline: Polyline) -> OCCBrepLoop

Construct a loop from a polyline.

Parameters:

Returns:

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:

Returns:

  • bool

    True if the loops are equal, False otherwise.

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:

Returns:

  • bool

    True if the loops are the same, False otherwise.

to_polygon ¤

to_polygon() -> Polygon

Convert the loop to a simple polygon without underlying geometry.

Returns:

to_polyline ¤

to_polyline() -> Polyline

Convert the loop to a polyline.

Returns: