2150 |
mathias |
1 |
if(!dojo._hasResource["dojox.gfx3d._base"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
|
|
2 |
dojo._hasResource["dojox.gfx3d._base"] = true;
|
|
|
3 |
dojo.provide("dojox.gfx3d._base");
|
|
|
4 |
|
|
|
5 |
dojo.mixin(dojox.gfx3d, {
|
|
|
6 |
// summary: defines constants, prototypes, and utility functions
|
|
|
7 |
|
|
|
8 |
// default objects, which are used to fill in missing parameters
|
|
|
9 |
defaultEdges: {type: "edges", style: null, points: []},
|
|
|
10 |
defaultTriangles: {type: "triangles", style: null, points: []},
|
|
|
11 |
defaultQuads: {type: "quads", style: null, points: []},
|
|
|
12 |
defaultOrbit: {type: "orbit", center: {x: 0, y: 0, z: 0}, radius: 50},
|
|
|
13 |
defaultPath3d: {type: "path3d", path: []},
|
|
|
14 |
defaultPolygon: {type: "polygon", path: []},
|
|
|
15 |
defaultCube: {type: "cube", bottom: {x: 0, y: 0, z: 0}, top: {x: 100, y: 100, z: 100}},
|
|
|
16 |
defaultCylinder: {type: "cylinder", center: /* center of bottom */ {x: 0, y: 0, z: 0}, height: 100, radius: 50}
|
|
|
17 |
});
|
|
|
18 |
|
|
|
19 |
}
|