OCCBrepLoop

class compas_occ.brep.OCCBrepLoop(occ_wire)

Bases: BrepLoop

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

Parameters:
occ_wireTopoDS.TopoDS_Wire

An OCC BRep wire.

Attributes:
verticeslist[BrepVertex], read-only

List of BRep vertices.

edgeslist[BrepEdge], read-only

List of BRep edges.

Methods

fix

Try to fix the loop.

from_edges

Construct a loop from a collection of edges.

from_polygon

Construct a loop from a polygon.

from_polyline

Construct a loop from a polyline.

is_equal

Check if this loop is equal to another loop.

is_same

Check if this loop is the same as another loop.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.