set_hinge_3d
Set hinge in 3D.
Parameters
- edges : ShapeList
- List of edges
- faces : ShapeList
- List of faces
- material : Hinge or str, optional
- Hinge material (object, name or uuid). When omitted, the project's first hinge material is used (one is created if there is none).
Returns
- bool
- True if at least one hinge was added.
Notes
Edges must be connected to at least one plate, to which the hinge will be assigned. If edges are connected to multiple plates, hinges will all be set to all of them, unless faces are specified.
See also
Examples
edges = model.get_shapes(['edge'])
faces = model.get_shapes(['face'])
model.set_hinge_3d(edges, faces)
model.set_hinge_3d(edges, material=prj.Hinge(name='Hinge 50', moment=50))