LayerGeometry¶
-
class
pyslm.geometry.
LayerGeometry
(mid=0, bid=0, coords=None)¶ Bases:
abc.ABC
A Layer Geometry is the base class type used for storing a group of scan vectors or exposures. This is assigned a model id (
mid
) and a build style (bid
).A set of coordinates are always available via
coords
. The coordinates should always be a numpy array that with a shape of Nx2 corresponding to the LayerGeometry type.Attributes Summary
The Build Style Id for the LayerGeometry.
Coordinate data stored by the LayerGeometry.
The Model Id used for the LayerGeometry The Model Id refers to the collection of unique build-styles assigned to a part within a build.
Methods Summary
- rtype:
ndarray
type
()Returns which type the
layerGeometry
is in the derived class.Attributes Documentation
-
bid
¶ The Build Style Id for the LayerGeometry. The Build Style Id refers to the collection of laser parameters used during scanning of scan vector group and must be available within the
Model
used.- Return type:
int
-
coords
¶ Coordinate data stored by the LayerGeometry.
- Return type:
ndarray
-
mid
¶ The Model Id used for the LayerGeometry The Model Id refers to the collection of unique build-styles assigned to a part within a build.
- Return type:
int
Methods Documentation
-
boundingBox
()¶ - Return type:
ndarray
-
abstract
type
()¶ Returns which type the
layerGeometry
is in the derived class.- Return type:
LayerGeometryType