dymokomi/luce-usd
Source of release 0.9.2
0.9.2 / tests / fixtures / geom / room.usda
#usda 1.0
(
doc = "A room for stage options: a table whose variant set picks a quad or a triangle top, a lamp in a payload, and two instances of one chair."
defaultPrim = "Room"
)
def Xform "Room"
{
def Xform "Table" (
variantSets = "top"
variants = {
string top = "quad"
}
)
{
def Mesh "Top"
{
point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)]
}
variantSet "top" = {
"quad" {
over "Top"
{
int[] faceVertexCounts = [4]
int[] faceVertexIndices = [0, 1, 2, 3]
}
}
"triangles" {
over "Top"
{
int[] faceVertexCounts = [3, 3]
int[] faceVertexIndices = [0, 1, 2, 0, 2, 3]
}
}
}
}
def Xform "Lamp" (
payload = @room_lamp.usda@</Lamp>
)
{
}
def Xform "ChairA" (
instanceable = true
references = </Chair>
)
{
}
def Xform "ChairB" (
instanceable = true
references = </Chair>
)
{
}
def Xform "Hidden" (
active = false
)
{
}
}
class Xform "Chair"
{
def Mesh "Seat"
{
int[] faceVertexCounts = [3]
int[] faceVertexIndices = [0, 1, 2]
point3f[] points = [(0, 0, 0), (1, 0, 0), (0, 1, 0)]
}
}