Difference between revisions of "X3DOM CAD"

From Web3D.org
Jump to: navigation, search
Line 3: Line 3:
 
[http://www.kshell.com/pages/x3dom/x3dom_cad/scripts/CADGeometry.js CADGeometry.js] Javascript code implementing the CADLayer, CADAssembly, CADFace, and CADPart nodes of the X3D [http://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/CADGeometry.html CADGeometry] component. This Javascript should be loaded by a webpage '''''after''''' the core components of the X3DOM Javascript have been loaded. Example:
 
[http://www.kshell.com/pages/x3dom/x3dom_cad/scripts/CADGeometry.js CADGeometry.js] Javascript code implementing the CADLayer, CADAssembly, CADFace, and CADPart nodes of the X3D [http://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/CADGeometry.html CADGeometry] component. This Javascript should be loaded by a webpage '''''after''''' the core components of the X3DOM Javascript have been loaded. Example:
 
<code>
 
<code>
     <script type="text/javascript" src="<nowiki>http://www.x3dom.org/x3dom/example/x3dom.js</nowiki>"></script>
+
     <script type="text/javascript" src="<nowiki>http://www.x3dom.org/x3dom/example/x3dom.js</nowiki>"/>
     <script type="text/javascript" src="<nowiki>http://www.kshell.com/pages/x3dom/x3dom_cad/scripts/CADGeometry.js</nowiki>"></script>
+
     <script type="text/javascript" src="<nowiki>http://www.kshell.com/pages/x3dom/x3dom_cad/scripts/CADGeometry.js</nowiki>"/>
 
</code>
 
</code>
  

Revision as of 23:35, 24 March 2013

Resources and Issues related to using the CADGeometry component in models incorporated into HTML5 web pages and rendered in a browser pages using X3DOM implemented with Javascript+WebGL or Flash Player

CADGeometry.js Javascript code implementing the CADLayer, CADAssembly, CADFace, and CADPart nodes of the X3D CADGeometry component. This Javascript should be loaded by a webpage after the core components of the X3DOM Javascript have been loaded. Example:

   <script type="text/javascript" src="http://www.x3dom.org/x3dom/example/x3dom.js"/>
   <script type="text/javascript" src="http://www.kshell.com/pages/x3dom/x3dom_cad/scripts/CADGeometry.js"/>

X3D Models

  • CadTeapot Copied from the Web3D Basic Examples CadTeapot model but modified so that each of the Appearance nodes for the 4 parts of the teapot is independently defined.

X3DOM Pages

  • laser_assembly page The laser_assembly model embedded in a web page rendered with X3DOM.
  • CadTeapot page The CadTeapot model embedded in a web page rendered with X3DOM.

X3DOM -- Product structure pages