User Tools

Site Tools


rigidity_group

Description

Defines a vertex group and how it participates in a rigidity map.

Parent Objects

Properties

Name Description Default Required
id A string representing the Unique identifier within the file None yes
rotation_mode A string representing the rotation mode for the group. Must be one of “none”, “full”, “primary”, or “secondary” “none” no
scale_modes An array of the scale modes. Valid values for each axis are “none”, “primary”, “secondary”, or “tertiary”. None yes
reference_vertices An int_array of vertex indices for vertices in the reference geometry None no
mask_vertices An int_array of vertex indices from the rigidity mask None no
reference A string representing the URI of the reference node None no
transform_nodes An array of URI to use when calculating the transform offset for the rigid geometry None no

Details

The order of the values in scale_modes depends on the set up of the rigidity group. If there are transform_nodes they are in the rotation order of those nodes. If there is a reference node and no transform_nodes it uses the reference node’s axis order. Finally, if there is no reference node or scale nodes it is in the axis order of the calculated reference axis.

Example

{
    "id" : "SashRigid",
    "rotation_mode" : "secondary",
    "scale_modes" : [ "primary", "secondary", "none" ],
    "reference_vertices" : {
        "count" : 12,
        "values" : [ 8198, 8200, 8201, 8230, 8234, 8235, 8236, 8237 ]
    },
    "mask_vertices" : {
        "count" : 24,
        "values" : [ 0, 1, 2, 6, 7, 8, 12, 13, 14, 15, 19, 20, 21 ]
    },
    "transform_nodes" : [ "#sash1", "#sash2" ]
}