Model¶
- class pyslm.geometry.Model(mid=0)¶
Bases:
objectA Model represents a parametric group or in practice a part which contains a set unique and assignable
BuildStyleused a specificLayerGeometry. The buildstyles are stored inbuildStyles.Each Model must have a unique model id (
mid). Additionally, for some build formats, the top layer id (topLayerId) should correspondLayer.idvalue of the last layer’sLayerGeometrythat uses this Model. It is recommended thatModelValidatorshould be used to verify that all Models have a unique model-id and that the correcttopLayerIdis set, using the following methodspyslm.geometry.ModelValidator.validateModel(model)
or
models = [modelA, modelB] pyslm.geometry.ModelValidator.validateBuild(models, layer_list)
Additional generic metadata can be stored for reference and describing the Model that are not necessarily used when exporting to build file including
name- Name of the ModelbuildStyleName- Name of the Build Style Used for this Model (e.g. parameter set)buildStyleDescription- Description of the Model Build Style set.
Attributes Summary
The description of the BuildStyles applied to the Model
The BuildStyle name applied to the Model
The BuildStyles associated with this model.
The unique id for this Model.
The name described by the model.
The Top Layer of all Layer Geometries using this model
Attributes Documentation
- buildStyleDescription¶
The description of the BuildStyles applied to the Model
- buildStyleName¶
The BuildStyle name applied to the Model
- buildStyles¶
The BuildStyles associated with this model.
- mid¶
The unique id for this Model.
- name¶
The name described by the model.
- topLayerId¶
The Top Layer of all Layer Geometries using this model