|
| 1 | +#usda 1.0 |
| 2 | + |
| 3 | +( |
| 4 | + upAxis = "Y" |
| 5 | + doc = """This layer represents the various geometric forms that curves |
| 6 | + may be used to represent.""" |
| 7 | +) |
| 8 | + |
| 9 | + |
| 10 | +def Xform "Linear" { |
| 11 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 12 | + float3 xformOp:translate = (0, 9, 0) |
| 13 | + def Scope "Tubes"{ |
| 14 | + def BasisCurves "ConstantWidth" (){ |
| 15 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 16 | + float3 xformOp:translate = (3, 0, 0) |
| 17 | + |
| 18 | + uniform token type = "linear" |
| 19 | + int[] curveVertexCounts = [7] |
| 20 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 21 | + float[] widths = [.5] (interpolation = "constant") |
| 22 | + color3f[] primvars:displayColor = [(1, 0, 0)] |
| 23 | + } |
| 24 | + def BasisCurves "VaryingWidth" (){ |
| 25 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 26 | + float3 xformOp:translate = (6, 0, 0) |
| 27 | + |
| 28 | + uniform token type = "linear" |
| 29 | + int[] curveVertexCounts = [7] |
| 30 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 31 | + float[] widths = [0, .5, .5, .8, .5, .5, 0] (interpolation = "varying") |
| 32 | + color3f[] primvars:displayColor = [(0, 0, 1)] |
| 33 | + } |
| 34 | + } |
| 35 | + def Scope "Ribbons"{ |
| 36 | + def BasisCurves "VaryingWidth" (){ |
| 37 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 38 | + float3 xformOp:translate = (12, 0, 0) |
| 39 | + |
| 40 | + uniform token type = "linear" |
| 41 | + int[] curveVertexCounts = [7] |
| 42 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 43 | + float[] widths = [0, .5, .5, .8, .5, .5, 0] (interpolation = "varying") |
| 44 | + normal3f[] normals = [(1, 0, 0), (.98, 0, .44), (.98, 0, .44), (.707, 0, .707), (.98, 0, .44), (.98, 0, .44), (1, 0, 0)] (interpolation = "varying") |
| 45 | + color3f[] primvars:displayColor = [(0, 1, 0)] |
| 46 | + } |
| 47 | + def BasisCurves "ConstantWidth" (){ |
| 48 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 49 | + float3 xformOp:translate = (15, 0, 0) |
| 50 | + |
| 51 | + uniform token type = "linear" |
| 52 | + int[] curveVertexCounts = [7] |
| 53 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 54 | + float[] widths = [.5] (interpolation = "constant") |
| 55 | + normal3f[] normals = [(1, 0, 0), (.98, 0, .44), (.98, 0, .44), (.707, 0, .707), (.98, 0, .44), (.98, 0, .44), (1, 0, 0)] (interpolation = "varying") |
| 56 | + color3f[] primvars:displayColor = [(1, 1, 1)] |
| 57 | + } |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +def Scope "Cubic"{ |
| 64 | + def Scope "Tubes" { |
| 65 | + def BasisCurves "ConstantWidth" (){ |
| 66 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 67 | + float3 xformOp:translate = (3, 0, 0) |
| 68 | + |
| 69 | + uniform token type = "cubic" |
| 70 | + uniform token basis = "bezier" |
| 71 | + int[] curveVertexCounts = [7] |
| 72 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 73 | + float[] widths = [.5] (interpolation = "constant") |
| 74 | + color3f[] primvars:displayColor = [(1, 0, 0)] |
| 75 | + } |
| 76 | + def BasisCurves "VaryingWidth" (){ |
| 77 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 78 | + float3 xformOp:translate = (6, 0, 0) |
| 79 | + |
| 80 | + uniform token type = "cubic" |
| 81 | + uniform token basis = "bezier" |
| 82 | + int[] curveVertexCounts = [7] |
| 83 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 84 | + float[] widths = [0, .8, 0] (interpolation = "varying") |
| 85 | + color3f[] primvars:displayColor = [(0, 0, 1)] |
| 86 | + } |
| 87 | + def BasisCurves "VertexWidth" (){ |
| 88 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 89 | + float3 xformOp:translate = (9, 0, 0) |
| 90 | + |
| 91 | + uniform token type = "cubic" |
| 92 | + uniform token basis = "bezier" |
| 93 | + int[] curveVertexCounts = [7] |
| 94 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 95 | + float[] widths = [0, .5, .5, .8, .5, .5, 0] (interpolation = "vertex") |
| 96 | + color3f[] primvars:displayColor = [(1, 0, 1)] |
| 97 | + } |
| 98 | + } |
| 99 | + def Scope "Ribbons"{ |
| 100 | + def BasisCurves "ConstantWidth" (){ |
| 101 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 102 | + float3 xformOp:translate = (12, 0, 0) |
| 103 | + |
| 104 | + uniform token type = "cubic" |
| 105 | + uniform token basis = "bezier" |
| 106 | + int[] curveVertexCounts = [7] |
| 107 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 108 | + float[] widths = [.5] (interpolation = "constant") |
| 109 | + normal3f[] normals = [(1, 0, 0), (.98, 0, .44), (.707, 0, .707)] (interpolation = "varying") |
| 110 | + color3f[] primvars:displayColor = [(0, 1, 0)] |
| 111 | + } |
| 112 | + def BasisCurves "VaryingWidth" (){ |
| 113 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 114 | + float3 xformOp:translate = (15, 0, 0) |
| 115 | + |
| 116 | + uniform token type = "cubic" |
| 117 | + uniform token basis = "bezier" |
| 118 | + int[] curveVertexCounts = [7] |
| 119 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 120 | + float[] widths = [.5, .8, .5] (interpolation = "varying") |
| 121 | + normal3f[] normals = [(1, 0, 0), (.98, 0, .44), (.707, 0, .707)] (interpolation = "varying") |
| 122 | + color3f[] primvars:displayColor = [(1, 1, 1)] |
| 123 | + } |
| 124 | + def BasisCurves "VertexWidth" (){ |
| 125 | + uniform token[] xformOpOrder = ["xformOp:translate"] |
| 126 | + float3 xformOp:translate = (18, 0, 0) |
| 127 | + |
| 128 | + uniform token type = "cubic" |
| 129 | + uniform token basis = "bezier" |
| 130 | + int[] curveVertexCounts = [7] |
| 131 | + point3f[] points = [(0, 0, 0), (1, 1, 0), (1, 2, 0), (0, 3, 0), (-1, 4, 0), (-1, 5, 0), (0, 6, 0)] |
| 132 | + float[] widths = [0, .5, .5, .8, .5, .5, 0] (interpolation = "vertex") |
| 133 | + normal3f[] normals = [(1, 0, 0), (.98, 0, .44), (.707, 0, .707)] (interpolation = "varying") |
| 134 | + color3f[] primvars:displayColor = [(1, 1, 0)] |
| 135 | + } |
| 136 | + } |
| 137 | +} |
0 commit comments