fusion_addin_framework.utils.create_cube¶
- fusion_addin_framework.utils.create_cube(center: Tuple[Union[float, int]], side_length: float) → adsk.fusion.BRepBody¶
Creates a simple cube using the TemporaryBRepManager. You need to pass it to the bodies collection of a component in order to make it available in Fusion.
- Parameters
center (Tuple[Union[float, int]]) – A (x,y,z)-tuple containing the cubes center coordinates.
side_length (float) – The side length of the cube.
- Returns
The transient instance of the created cube.
- Return type
adsk.fusion.BRepBody