Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.18 KB

File metadata and controls

27 lines (18 loc) · 1.18 KB

Geometry

検証 Omniverse Kit OpenUSD
not yet v.110.0.0 v.25.11

ジオメトリを作成するためのサンプルです。

primvarの仕様変更

USD 20.08からUSD 22.11にかけて、primvarの仕様が変更されました。
UsdGeom.PrimvarsAPI」を使用してprimvarを操作する必要があります。

Samples

サンプル 説明
CreateSphere 球を作成
UsdGeom.Sphere ( https://graphics.pixar.com/usd/release/api/class_usd_geom_sphere.html )を使用。
CreateCube 直方体を作成
UsdGeom.Cube ( https://graphics.pixar.com/usd/release/api/class_usd_geom_cube.html )を使用。
CreateMesh Meshを作成/Mesh情報を取得
UsdGeom.Mesh ( https://graphics.pixar.com/usd/release/api/class_usd_geom_mesh.html )を使用。
ファイル 説明
GetMeshPrimvars.py 選択Meshの「primvars:xxx」の情報を取得。
SetMeshPrimvars.py 選択Meshにprimvarを追加/削除。