Layer
- class compas_slicer.geometry.Layer(paths)[source]
Bases:
object
A Layer stores a group of ordered paths that are generated when a geometry is sliced. Layers are typically organized horizontally, but can also be organized vertically (see VerticalLayer). A Layer consists of one, or multiple Paths (depending on the geometry).
- Attributes:
paths (list) –
compas_slicer.geometry.Path
is_brim (bool) – True if this layer is a brim layer.
number_of_brim_offsets (int) – The number of brim offsets this layer has (None if no brim).
is_raft (bool) – True if this layer is a raft layer.
Attributes
total_number_of_points
Returns the total number of points within the layer.
Inherited Attributes
Methods
__init__
(paths)Fills in the attribute self.min_max_z_height.
from_data
(data)Construct a layer from its data representation.
to_data
()Returns a dictionary of structured data representing the data structure.
Inherited Methods