all  /  test_assets  / schemaTests  / usdGeom  / meshes  / doubleSided  / doubleSided_quad .usda

Double Sided Mesh

Screenshot

screenshot usdrecord 22.08

Description

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

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


Edit this page

doubleSided_quad.usda

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

def Xform "World"
{
    def Mesh "Plane_0"
    {
        uniform bool doubleSided = 1
        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 = 1
        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"
        )
    }
}