as_usd#
- Model.as_usd(update=False)#
Get the model as USD geometry DTOs.
- Parameters:
update (
bool) – Update the USD geometry if it is already present, by default False.- Return type:
- Returns:
Dictionary mapping part_id -> {“faces”: […], “edges”: […], “ctrlpts”: […], “splinesurf”: […]} where each list contains FaceGeometry, EdgeGeometry, or SplineGeometry DTOs.
Notes
This is a beta API. The behavior and implementation may change in future.
Examples
>>> usd_geom = model.as_usd() >>> for part_id, geoms in usd_geom.items(): ... for face_geom in geoms.get("faces", []): ... print(face_geom.mesh_id, face_geom.color)