all  /  test_assets  / schemaTests  / usdGeom  / meshes  / singleSided  / singleSided .usda

Single Sided Mesh

Screenshot

screenshot usdrecord 22.08

Description

These are two single sided meshes with doubleSided = 0. The same example is available with double sided meshes at doubleSided.

Schema specification: https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/usdGeom/schema.usda


Edit this page

singleSided.usda

#usda 1.0
(
    customLayerData = {
        string copyright = "Copyright 2022 Apple Inc. All rights reserved."
    }
    defaultPrim = "World"
    upAxis = "Y"
    metersPerUnit = 0.01
)

def Scope "World"
{
    def Mesh "Plane_0"
    {
        uniform bool doubleSided = 0
        int[] faceVertexCounts = [4]
        int[] faceVertexIndices = [0, 1, 2, 3]
        point3f[] points = [(-2, -2, -2), (0, -2, -2), (0, 2, -2), (-2, 2, -2)]
        color3f[] primvars:displayColor = [(0, 0, 0.8)]
        float2[] primvars:st = [(0, 0), (1, 0), (1, 1), (0, 1)] (
            interpolation = "vertex"
        )
    }

    def Mesh "Plane_1"
    {
        uniform bool doubleSided = 0
        int[] faceVertexCounts = [4]
        int[] faceVertexIndices = [0, 1, 2, 3]
        point3f[] points = [(0, -2, -2), (0, 2, -2), (2, 2, -2), (2, -2, -2)]
        color3f[] primvars:displayColor = [(0.8, 0, 0)]
        float2[] primvars:st = [(0, 0), (1, 0), (1, 1), (0, 1)] (
            interpolation = "vertex"
        )
    }
}