This function restrains the face(s) specified by the face indices on the object, in the coordinate directions given by the type of restraint. Equivalent to setting a face restraint in SnS.
Parameter | Description |
---|---|
String GUID | Rhino ID of the object. |
String RestraintDescription | Description of this restraint. Equivalent to the Description entered in the text box when editing restraints in SnS. Should be unique. |
Array(int) FaceIndices | The indices of the faces on the solid to apply the restraint to, an array of integers. If only one face is to be restrained, it is not necessary to put the index in an array. |
String RestraintType | A string containing the directions to restrain. For full restraints, use “xyz”. For partial restraints, omit the directions you do not wish to restrain, such as “yz”, “xz”, “xy”. Case insensitive. |
Return Type | Description |
Boolean | True if the restraint was successfully added to the object, False otherwise. |
This function restrains the face(s) specified by the face indices on the object, in the coordinate directions given by the type of restraint. Equivalent to setting a face restraint in SnS.
Parameter | Description |
---|---|
String GUID | Rhino ID of the object. |
String RestraintDescription | Description of this restraint. Equivalent to the Description entered in the text box when editing restraints in SnS. Should be unique. |
Array(int) EdgeIndices | The indices of the edges on the solid to apply the restraint to, an array of integers. If only one edge is to be restrained, it is not necessary to put the index in an array. |
String RestraintType | A string containing the directions to restrain. For full restraints, use “xyz”. For partial restraints, omit the directions you do not wish to restrain, such as “yz”, “xz”, “xy”. Case insensitive. |
Return Type | Description |
Boolean | True if the restraint was successfully added to the object, False otherwise. |