These files show all available mesh primitives.
Schema specification: https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/usdGeom/schema.usda
This file shows an example of the Capsule
primitive.
capsule.usda, usdrecord 22.08
This file shows an example of the Cone
primitive.
cone.usda, usdrecord 22.08
This file shows an example of the Cube
primitive.
cube.usda, usdrecord 22.08
This file shows an example of the Cylinder
primitive.
cylinder.usda, usdrecord 22.08
This file shows an example of the Sphere
primitive.
sphere.usda, usdrecord 22.08
This files includes all of the above primivites.
all_primitives.usda, usdrecord 22.08
#usda 1.0
(
customLayerData = {
string copyright = "Copyright 2022 Apple Inc. All rights reserved."
}
defaultPrim = "World"
upAxis = "Y"
metersPerUnit = 0.01
)
def Scope "World"
{
def Capsule "Capsule"
{
uniform token axis = "Z"
float3[] extent = [(-0.5, -0.5, -1), (0.5, 0.5, 1)]
double height = 1
double radius = 0.5
double3 xformOp:translate = (0, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Cone "Cone"
{
uniform token axis = "Z"
float3[] extent = [(-1, -1, -1), (1, 1, 1)]
double height = 2
double radius = 1
double3 xformOp:translate = (2, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Cube "Cube"
{
float3[] extent = [(-1, -1, -1), (1, 1, 1)]
double size = 2
double3 xformOp:translate = (4, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Cylinder "Cylinder"
{
uniform token axis = "Z"
float3[] extent = [(-1, -1, -1), (1, 1, 1)]
double height = 2
double radius = 1
double3 xformOp:translate = (6, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Sphere "Sphere"
{
float3[] extent = [(-1, -1, -1), (1, 1, 1)]
double radius = 1
double3 xformOp:translate = (8, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
}