Path

class compas_slicer.geometry.Path(points, is_closed)[source]

Bases: object

A Path is a connected contour within a Layer. A Path consists of a list of compas.geometry.Points.

Attributes:
  • points (list) – compas.geometry.Point

  • is_closed (bool) – True if the Path is a closed curve, False if the Path is open. If the path is closed, the first and the last point are identical.

Methods

__init__(points, is_closed)

from_data(data)

Construct a path from its data representation.

to_data()

Returns a dictionary of structured data representing the data structure.

Inherited Methods