Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-usd

Source of release 0.9.4

0.9.4 / tests / fixtures / geom / curves.usda

#usda 1.0

def Xform "Hair"
{
    double3 xformOp:translate = (0, 0, 1)
    uniform token[] xformOpOrder = ["xformOp:translate"]

    def BasisCurves "Lines"
    {
        uniform token type = "linear"
        int[] curveVertexCounts = [2, 3]
        point3f[] points = [(0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (2, 1, 0)]
        float[] widths = [0.5] (
            interpolation = "constant"
        )
        color3f[] primvars:displayColor = [(1, 0, 0), (0, 1, 0)] (
            interpolation = "uniform"
        )
    }

    def BasisCurves "Bezier"
    {
        int[] curveVertexCounts = [4]
        point3f[] points = [(0, 0, 0), (1, 1, 0), (2, 1, 0), (3, 0, 0)]
    }

    def BasisCurves "Spline"
    {
        uniform token basis = "bspline"
        uniform token wrap = "periodic"
        int[] curveVertexCounts = [4]
        point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)]
    }

    def NurbsCurves "Arc"
    {
        int[] curveVertexCounts = [3]
        int[] order = [3]
        double[] knots = [0, 0, 0, 1, 1, 1]
        double[] pointWeights = [1, 0.70710678, 1]
        point3f[] points = [(1, 0, 0), (1, 1, 0), (0, 1, 0)]
    }
}

def Points "Dust"
{
    point3f[] points = [(5, 0, 0), (6, 0, 0)]
    float[] widths = [0.1, 0.2]
    int64[] ids = [10, 11]
}