X3D Model Documentation: NurbsTrimmedSurfaceExample.x3d

  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='4name='NURBS'/>
  6            <meta name='titlecontent='NurbsTrimmedSurfaceExample.x3d'/>
  7            <meta name='descriptioncontent='This scene contains a single NurbsTrimmedSurface rendering one-quarter of a cylindrical segment; with a triangular notch cut from one edge. The "solid" field of the surface is set false so surface is visible from both sides. Surface has semi-transparent material appearance. Scene also contains unit-length line segments defining x-y-z coordinate axes. Defined Viewpoints show the inner and outer sides of the cylindrical surface'/>
  8            <meta name='Imagecontent='NurbsTrimmedSurface.jpg'/>
  9            <meta name='creatorcontent='Vincent Marchetti'/>
 10            <meta name='createdcontent='10 February 2012'/>
 11            <meta name='modifiedcontent='17 June 2020'/>
 12            <meta name='Imagecontent='images/NurbsTrimmedSurfaceInstantReality.png'/>
 13            <meta name='Imagecontent='images/NurbsTrimmedSurfaceXj3D.png'/>
 14            <meta name='referencecontent='http://www.kshell.com/pages/nurbs_surface_demo'/>
 15            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsTrimmedSurfaceExample.x3d'/>
 16            <meta name='generatorcontent='Python language scripting'/>
 17            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 18            <meta name='licensecontent='../license.html'/>
 19       </head>
<!--

<!-- to top Index for DEF node: Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
 20       <Scene>
 21            <WorldInfo title='NurbsTrimmedSurfaceExample.x3d'/>
 22            <Background skyColor='0.8 0.8 0.8'/>
 23            <Viewpoint description='view outer surfacefieldOfView='0.16628orientation='0.166 0.465 0.87 2.538position='10.55 12.855 11.111'/>
 24            <Viewpoint description='view inner surfacefieldOfView='0.16628orientation='0.797 -0.285 -0.533 1.182position='-10.55 -12.855 11.111'/>
 25            <Shape>
 26                 <NurbsTrimmedSurface solid='falseuDimension='5uKnot='0.0 0.0 0.0 0.5 0.5 1.0 1.0 1.0vDimension='2vKnot='0.0 0.0 1.0 1.0vOrder='2weight='1.0 0.923879181092 1.0 0.923879181092 1.0 1.0 0.923879181092 1.0 0.923879181092 1.0containerField='geometry'>
 27                      <Coordinate containerField='controlPointpoint='1 0 0 0.92388 0.38268 0 0.70711 0.70711 0 0.38268 0.92388 0 -0.000004 1 0 1 0 1 0.92388 0.38268 0.92388 0.70711 0.70711 1 0.38268 0.92388 0.92388 -0.000004 1 1'/>
 28                      <Contour2D containerField='trimmingContour'>
 29                           <NurbsCurve2D controlPoint='0 0 1 0 0.75 0.5 1 0.5 1 1 0 1 0 0knot='0 0 0.16667 0.33333 0.5 0.66667 0.83333 1 1order='2weight='1 1 1 1 1 1 1containerField='children'/>
 30                      </Contour2D>
 31                 </NurbsTrimmedSurface>
 32                 <Appearance>
 33                      <Material diffuseColor='1 1 0transparency='0.2'/>
 34                 </Appearance>
 35            </Shape>
 36            <Group>
 37                 <Shape>
 38                      <LineSet vertexCount='2containerField='geometry'>
 39                           <Coordinate point='0 0 0 1 0 0'/>
 40                      </LineSet>
 41                      <Appearance>
 42                           <Material emissiveColor='1 0 0'/>
 43                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 44                      </Appearance>
 45                 </Shape>
 46                 <Shape>
 47                      <LineSet vertexCount='2containerField='geometry'>
 48                           <Coordinate point='0 0 0 0 1 0'/>
 49                      </LineSet>
 50                      <Appearance>
 51                           <Material emissiveColor='0 1 0'/>
 52                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 53                      </Appearance>
 54                 </Shape>
 55                 <Shape>
 56                      <LineSet vertexCount='2containerField='geometry'>
 57                           <Coordinate point='0 0 0 0 0 1'/>
 58                      </LineSet>
 59                      <Appearance>
 60                           <Material emissiveColor='0 0 1'/>
 61                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 62                      </Appearance>
 63                 </Shape>
 64            </Group>
 65       </Scene>
 66  </X3D>
<!--

<!-- to top Index for DEF node: Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2
-->
X3D Tooltips element index: Appearance, Background, component, Contour2D, Coordinate, Group, head, LineProperties, LineSet, Material, meta, NurbsCurve2D, NurbsTrimmedSurface, Scene, Shape, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsTrimmedSurfaceExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsTrimmedSurfaceExample.x3d -->

<!-- Color legend: X3D terminology <X3dNode field='value'/> matches XML terminology <XmlElement attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->