RigidGroup (hwx.inspire.core)

Group of parts which don’t move relative to each other and are realized to motion as a single rigid body.

Rigid groups are mutually exclusive meaning a part can’t be in two at the same time.

Attributes

active: Bool ground: Bool ip: Inertia
mass: Double name: Attribute parts: Attribute
visible: Bool  

Properties

Public Methods

classmethod create (cls, **kwds)
add (self, parts)
discard (self, parts)
remove (self, parts)

Attribute Details

active : Bool

Returns or sets the object activeness.

Setting this on or off sets all children. Setting to True sets all the parents active too.

ground : Bool

Returns True, if any of the rigid group parts are grounded.

ip : Inertia (units=”massMI”)

mass : Double (units=”m”)

Returns the combined mass of all the parts in rigid group.

name : Attribute

Returns or sets the name of the object.

It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.

While these characters are allowed, they could create difficulties when you export the model to other applications.

parts : Attribute

List of parts in the rigid group.

visible : Bool

Determines whether the object is visible in the modeling window.

Setting this on or off sets all children. Setting to True sets all the parents visible too.

Property Details

cg()

Returns the center of gravity point of the rigid group.

position()

Returns the position of the first part as a Matrix44.

Method Details

classmethod create(cls, **kwds)

Create and returns a Rigid Group.

Args: **name (str) : Name of the rigid group. **parts (list[Part]) : Specify a part or list of parts to create rigid group.

returns:Return created rigid group.
rtype:RigidGroup
add(self, parts)

Adds part or parts to the rigid group.

Errors if the part already exists in the rigid group.

param parts:List of part or parts to add into rigid group.
type parts:list[Part]
discard(self, parts)

Remove part or parts from the rigid group.

param parts:List of part or parts to remove from the rigid group.
type parts:list(Part)
remove(self, parts)

Remove part or parts from the rigid group.

Errors if the part does not exists in rigid group.

param parts:List of part or parts to remove from the rigid group.
type parts:list[Part]