Gear
Class Gear()
Gear(parent='MODEL', name='Gear_n', label='Gear_n', active=True, j1=None,
j2=None, origin=None, align_meth1='Point', align_pt1=None, align_vec1=None)
Creates a gear.
Keyword Arguments
Argument | Data Type | Description | Default |
---|---|---|---|
name | String | The variable name. | Gear_n, for next available integer n. |
label | String | The descriptive label. | Gear_n, for next available integer n. |
parent | Object | The parent. | MODEL |
active | Bool | Used to activate or deactivate this entity. | True |
j1 | Joint | The first joint constrained by the gear. | None |
j2 | Joint | The second joint constrained by the gear. | None |
origin | Point | The location of center of the gear. | None |
align_meth1 | MultiRef | The alignment method. One of Point or Vector. | Point |
align_pt1 | Point | The point reference for alignment when align_meth1 is Point. | None |
align_vec1 | Vector | The vector reference for alignment when align_meth1 is Vector. | None |
Notes
1. The parent parameter can only be initialized by the constructor and should not be modified directly.
2. Only parent can be used as a positional argument in the constructor.
3. Instance is a reference to an entity. You cannot modify an instance, but can modify its properties.
Methods
- getAssociatedGraphics()
-
Get all the graphics that are associated with this object.
Returns:
List of all graphic associated with this body.
Return type:
(list)