49c6ad6a18e4368c26402da36456a69a8cc6effb.svn-base 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. if (!dojo._hasResource["dojox.gfx3d._base"]) { // _hasResource checks added by
  2. // build. Do not use
  3. // _hasResource directly in your
  4. // code.
  5. dojo._hasResource["dojox.gfx3d._base"] = true;
  6. dojo.provide("dojox.gfx3d._base");
  7. dojo.mixin(dojox.gfx3d, {
  8. // summary: defines constants, prototypes, and utility functions
  9. // default objects, which are used to fill in missing parameters
  10. defaultEdges : {
  11. type : "edges",
  12. style : null,
  13. points : []
  14. },
  15. defaultTriangles : {
  16. type : "triangles",
  17. style : null,
  18. points : []
  19. },
  20. defaultQuads : {
  21. type : "quads",
  22. style : null,
  23. points : []
  24. },
  25. defaultOrbit : {
  26. type : "orbit",
  27. center : {
  28. x : 0,
  29. y : 0,
  30. z : 0
  31. },
  32. radius : 50
  33. },
  34. defaultPath3d : {
  35. type : "path3d",
  36. path : []
  37. },
  38. defaultPolygon : {
  39. type : "polygon",
  40. path : []
  41. },
  42. defaultCube : {
  43. type : "cube",
  44. bottom : {
  45. x : 0,
  46. y : 0,
  47. z : 0
  48. },
  49. top : {
  50. x : 100,
  51. y : 100,
  52. z : 100
  53. }
  54. },
  55. defaultCylinder : {
  56. type : "cylinder",
  57. center : /* center of bottom */{
  58. x : 0,
  59. y : 0,
  60. z : 0
  61. },
  62. height : 100,
  63. radius : 50
  64. }
  65. });
  66. }