newton.Style3DModel#
- class newton.Style3DModel(device=None)[source]#
Bases:
Model
Style3DModel derived from newton model, contains extended simulation attributes.
Note
Use the Style3DModelBuilder to construct a simulation rather than creating your own Model object directly, however it is possible to do so if desired.
- classmethod from_model(model)#
Creates a Style3DModel instance from an existing Newton Model.
This method copies all attributes from the given Model instance and initializes Style3D-specific attributes to None.
- Parameters:
model (Model) – The base Newton Model to convert.
- Returns:
A new Style3DModel instance with copied attributes.
- Return type:
- __init__(device=None)#
Initializes the Model object.
- Parameters:
device (wp.Device) – Device on which the Model’s data will be allocated.
- edge_bending_cot#
Bending edge cotangents, shape [edge_count, 4], float.
- edge_rest_area#
Bending edge area, sum area of adjacent two triangles, shape [edge_count], float.
- tri_aniso_ke#
Triangle element aniso stretch stiffness(weft, warp, shear), shape [tri_count, 3], float.