| 1 | <?xml version="1.0" encoding="UTF-8"?> | 
| 2 | <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd"> | 
| 3 | <X3D profile='Immersive' version='3.2' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'> | 
| 4 | <head> | 
| 5 | <component level='4' name='NURBS'/> | 
| 6 | <meta name='title' content=' HoleCentered.x3d '/> | 
| 7 | <meta name='description' content='A NurbsTrimmedSurface node rendering a square centered on the origin in the x-y plane; with sides 8 units length. A trimming curve is used to cut out a circle of radius 1 unit centered on the origin. Red (x), Green (y) and Blue (z) line segments represent the x-y-z unit axes.'/> | 
| 8 | <meta name='Image' content='HoleCentered.jpg'  /> | 
| 9 | <meta name='creator' content='Vincent Marchetti'/> | 
| 10 | <meta name='created' content='10 February 2012'/> | 
| 11 | <meta name='modified' content='20 October 2019'/> | 
| 12 | <meta name='Image' content='images/HoleCenteredInstantReality.png'  /> | 
| 13 | <meta name='Image' content='images/HoleCenteredXj3D.png'  /> | 
| 14 | <meta name='reference' content='http://www.kshell.com/pages/trimmed_nurbs_demo'/> | 
| 15 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/NURBS/HoleCentered.x3d '/> | 
| 16 | <meta name='generator' content='Python language scripting'/> | 
| 17 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> | 
| 18 | <meta name='license' content='../license.html'/> | 
| 19 | </head> | 
| 20 | <Scene> | 
| 21 | <WorldInfo title='HoleCentered.x3d'/> | 
| 22 | <Viewpoint description='NurbsTrimmedSurface Hole Centered' position='0 0 12'/> | 
| 23 | <Background skyColor='1 1 1'/> | 
| 24 | <Group> | 
| 25 | <Shape> | 
| 26 | <LineSet vertexCount='2' containerField='geometry'> | 
| 27 | <Coordinate point='0 0 0 1 0 0'/> | 
| 28 | </LineSet> | 
| 29 | <Appearance> | 
| 30 | <Material emissiveColor='1 0 0'/> | 
| 31 | <LineProperties linewidthScaleFactor='2' containerField='lineProperties'/> | 
| 32 | </Appearance> | 
| 33 | </Shape> | 
| 34 | <Shape> | 
| 35 | <LineSet vertexCount='2' containerField='geometry'> | 
| 36 | <Coordinate point='0 0 0 0 1 0'/> | 
| 37 | </LineSet> | 
| 38 | <Appearance> | 
| 39 | <Material emissiveColor='0 1 0'/> | 
| 40 | <LineProperties linewidthScaleFactor='2' containerField='lineProperties'/> | 
| 41 | </Appearance> | 
| 42 | </Shape> | 
| 43 | <Shape> | 
| 44 | <LineSet vertexCount='2' containerField='geometry'> | 
| 45 | <Coordinate point='0 0 0 0 0 1'/> | 
| 46 | </LineSet> | 
| 47 | <Appearance> | 
| 48 | <Material emissiveColor='0 0 1'/> | 
| 49 | <LineProperties linewidthScaleFactor='2' containerField='lineProperties'/> | 
| 50 | </Appearance> | 
| 51 | </Shape> | 
| 52 | </Group> | 
| 53 | <Shape> | 
| 54 | <NurbsTrimmedSurface solid='false' uDimension='2' uKnot='-4 -4 4 4' uOrder='2' vDimension='2' vKnot='-4 -4 4 4' vOrder='2' weight='1 1 1 1' containerField='geometry'> | 
| 55 | <Coordinate containerField='controlPoint' point='-4 -4 0 4 -4 0 -4 4 0 4 4 0'/> | 
| 56 | <Contour2D containerField='trimmingContour'> | 
| 57 | <NurbsCurve2D controlPoint='-4 -4 4 -4 4 4 -4 4 -4 -4' knot='0 0 0.25 0.5 0.75 1 1' order='2' weight='1 1 1 1 1' containerField='children'/> | 
| 58 | </Contour2D> | 
| 59 | <Contour2D containerField='trimmingContour'> | 
| 60 | <NurbsCurve2D controlPoint='1 0 0.7071 -0.7071 0 -1 -0.7071 -0.7071 -1 0 -0.7071 0.7071 0 1 0.7071 0.7071 1 0' knot='0 0 0 0.25 0.25 0.5 0.5 0.75 0.75 1 1 1' weight='1 0.7071 1 0.7071 1 0.7071 1 0.7071 1' containerField='children'/> | 
| 61 | </Contour2D> | 
| 62 | </NurbsTrimmedSurface> | 
| 63 | <Appearance DEF='ksh_appearance_1'> | 
| 64 | <Material diffuseColor='0 0 1'/> | 
| 65 | </Appearance> | 
| 66 | </Shape> | 
| 67 | </Scene> | 
| 68 | </X3D> | 
         <!--
Color-coding legend: X3D terminology 
<X3dNode
          DEF='idName' field='value'/> 
 matches XML terminology 
<XmlElement
          DEF='idName' attribute='value'/> 
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
          -->
      
         
             <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->
         
         <!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->