1 | define(["dojo/_base/lang"],function(lang) { |
---|
2 | var gfx3d = lang.getObject("dojox.gfx3d",true); |
---|
3 | lang.mixin( gfx3d, { |
---|
4 | // summary: defines constants, prototypes, and utility functions |
---|
5 | |
---|
6 | // default objects, which are used to fill in missing parameters |
---|
7 | defaultEdges: {type: "edges", style: null, points: []}, |
---|
8 | defaultTriangles: {type: "triangles", style: null, points: []}, |
---|
9 | defaultQuads: {type: "quads", style: null, points: []}, |
---|
10 | defaultOrbit: {type: "orbit", center: {x: 0, y: 0, z: 0}, radius: 50}, |
---|
11 | defaultPath3d: {type: "path3d", path: []}, |
---|
12 | defaultPolygon: {type: "polygon", path: []}, |
---|
13 | defaultCube: {type: "cube", bottom: {x: 0, y: 0, z: 0}, top: {x: 100, y: 100, z: 100}}, |
---|
14 | defaultCylinder: {type: "cylinder", center: /* center of bottom */ {x: 0, y: 0, z: 0}, height: 100, radius: 50} |
---|
15 | }); |
---|
16 | return gfx3d; |
---|
17 | }); |
---|