model3d module#
3D Model Representation#
This module provides the Model3D class for representing 3D models with position, scale, and rotation transforms. The 3D model is only used for export and is otherwise not used by the JITX engine.
The 3D model file is looked up relative to the source file that calls the Model3D constructor if a relative path is used.
- class Model3D(filename, /, position=(0, 0, 0), scale=(1, 1, 1), rotation=(0, 0, 0))[source]#
Bases:
Critical3D model with position, scale, and rotation.
>>> model = Model3D("APHB1608.step", rotation=(90, 0, 0))
- Parameters:
filename (str)
position (Vec3D)
scale (Vec3D)
rotation (Vec3D)
-
position:
TypeAliasType# 3D position offset.
-
scale:
TypeAliasType# 3D scale factors.
-
rotation:
TypeAliasType# 3D rotation angles.