Defines an assembly of objects or sub-assemblies.
Attributes
Arguments
objects (optional) - a list of AssembledObject instances that are part of this assembly. subassemblies (optional) - a list of Assembly instances to be transformed together with this assembly. location, rotation - passed on to HasFrame.
Adds an assembly to the current assembly.
Arguments
Adds an object to the assembly.
Arguments
Get the list of objects belonging directly to this assembly, without querying the child assemblies.
Generates a list of AssembledObject instances belonging to this assembly or its subassemblies.
Generates a list of surface objects out of all the surfaces in the objects and subassemblies belonging to this assembly.
The surfaces are guarantied to be in the order that each object returns them, and the objects are guarantied to be ordered the same as in self.get_objects()
A recursive version of the parent’s set_rotation. Changes the location part of the assembly’s transform, and updates the assembly’s children’s transform accordingly.
Arguments
A recursive version of the parent’s set_rotation. Changes the rotation part of the assembly’s transform, and updates the assembly’s children’s transform accordingly.
Arguments
Transforms the entire assembly
Arguments