shape Element Reference
Declares a shape node. More...
Inheritance diagram for shape:

Detailed Description
Declares a shape node.Shapes may either be specified via the common "shape" : { "type" : "sphere" ... } syntax or, for convenience, via "sphere" : { ... }. See the example usage for a concrete example.
- Note:
- Aggregate shapes such as shapeSet may contain child materials and transforms.
shape corresponds to the underlying Milton class 'Shape.'
Available shape variants:
dynamic, triangle, plane, sphere, blob, point, cube, cone, cylinder, mesh, shapeSetExample usage:
"scene" : {
// declare the same sphere centered at the origin two different ways
"sphere" : { },
// declare a mesh
"mesh" : {
"path" : "path/to/mesh.obj", // ply or obj mesh
"name" : "myMesh", // optionally specify a name
},
// declare a translated mesh instance with a different material
"material" : {
"medium" : { "ior" : 1.49 },
"transform" : {
"translate" : [ 0, 5, 0 ],
"shape" : { "instance" : "myMesh" },
},
},
},
Generated on 28 Feb 2009 for MiltonScenefileFormat by
1.5.6