X3D Model Documentation: TrimmedNurbsWithHole.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='TrimmedNurbsWithHole.x3d'/>
  7            <meta name='descriptioncontent='Scene contains a single NurbsTrimmedSurface node which has two Contour2D child nodes, defining a trimmed outer boundary to the patch and an interior hole in the patch. Scene also contains unit-length line segments defining x-y-z coordinate axes.'/>
  8            <meta name='creatorcontent='Vincent Marchetti'/>
  9            <meta name='createdcontent='10 February 2012'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='subjectcontent='NURBS example NurbsTrimmedSurface Contour2D NurbsCurve2D'/>
 12            <meta name='Imagecontent='TrimmedNurbsWithHole.jpg'/>
 13            <meta name='Imagecontent='images/TrimmedNurbsWithHoleXj3d.png'/>
 14            <meta name='referencecontent='originals/trimmed_nurbs_with_hole.x3d'/>
 15            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/NURBS/TrimmedNurbsWithHole.x3d'/>
 16            <meta name='generatorcontent='Python language scripts using Numpy, SciPy libraries http://numpy.scipy.org'/>
 17            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 18            <meta name='licensecontent='../license.html'/>
 19            <meta name=' TODO content=' instantReality Forum Issuehttp://forum.instantreality.org '/>
 20            <meta name=' TODO content=' BS Contact BitManagement Bug Report: http://www.bitmanagement.de/en/contact '/>
 21       </head>
<!--

<!-- -->

<!-- to top Index for DEF node: ksh_appearance_1

Index for Viewpoint node: Viewpoint_1
-->
 22       <Scene>
 23            <WorldInfo title='TrimmedNurbsWithHole.x3d'/>
 24            <Background skyColor='1 1 1'/>
 25            <Viewpoint description='Trimmed Nurbs With Holeorientation='-0.77676 0.60251 0.18337 0.74685position='2 3 4'/>
 26            <Group>
 27                 <Shape>
 28                      <LineSet vertexCount='2containerField='geometry'>
 29                           <Coordinate point='0 0 0 1 0 0'/>
 30                      </LineSet>
 31                      <Appearance>
 32                           <Material emissiveColor='1 0 0'/>
 33                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 34                      </Appearance>
 35                 </Shape>
 36                 <Shape>
 37                      <LineSet vertexCount='2containerField='geometry'>
 38                           <Coordinate point='0 0 0 0 1 0'/>
 39                      </LineSet>
 40                      <Appearance>
 41                           <Material emissiveColor='0 1 0'/>
 42                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 43                      </Appearance>
 44                 </Shape>
 45                 <Shape>
 46                      <LineSet vertexCount='2containerField='geometry'>
 47                           <Coordinate point='0 0 0 0 0 1'/>
 48                      </LineSet>
 49                      <Appearance>
 50                           <Material emissiveColor='0 0 1'/>
 51                           <LineProperties linewidthScaleFactor='2containerField='lineProperties'/>
 52                      </Appearance>
 53                 </Shape>
 54            </Group>
 55            <Shape>
 56                 <!-- Instant Reality options: meshGenerationType="dynamic" or advancedStatic or simpleStatic -->
 57                 <NurbsTrimmedSurface solid='falseuDimension='3uKnot='0 0 0 1 1 1vDimension='2vKnot='0 0 2 2vOrder='2weight='1 0.946042343528 1 1 0.946042343528 1containerField='geometry'>
 58                      <Coordinate containerField='controlPointpoint='1.5 -1.1102e-16 -8.6600e-01 1.4191e+00 6.4809e-01 -8.1927e-01 1.0800e+00 1.2262e+00 -8.6600e-01 5.0000e-01 -5.5511e-17 8.6600e-01 4.7302e-01 3.2404e-01 8.1927e-01 2.8999e-01 6.1312e-01 8.6600e-01'/>
 59                      <Contour2D containerField='trimmingContour'>
 60                           <NurbsCurve2D controlPoint='0 0 1 0 1 1.5knot='0 0 0.5 1 1order='2weight='1 1 1containerField='children'/>
 61                           <NurbsCurve2D controlPoint='1 1.5 7.1000e-01 1.4200e+00 5.0000e-01 2knot='0 0 0 1 1 1weight='1 0.71 1containerField='children'/>
 62                           <NurbsCurve2D controlPoint='5.0000e-01 2 0 2 0 0knot='0 0 0.5 1 1order='2weight='1 1 1containerField='children'/>
 63                      </Contour2D>
 64                      <Contour2D containerField='trimmingContour'>
 65                           <NurbsCurve2D controlPoint='7.5000e-01 1.5 5.3033e-01 8.8388e-01 5.0000e-01 1.2500e+00 1.7678e-01 8.8388e-01 2.5000e-01 1.5 1.7678e-01 1.2374e+00 5.0000e-01 1.7500e+00 5.3033e-01 1.2374e+00 7.5000e-01 1.5knot='0 0 0 0.25 0.25 0.5 0.5 0.75 0.75 1 1 1weight='1 0.707106781187 1 0.707106781187 1 0.707106781187 1 0.707106781187 1containerField='children'/>
 66                      </Contour2D>
 67                 </NurbsTrimmedSurface>
 68                 <Appearance DEF='ksh_appearance_1'>
 69                      <Material diffuseColor='0 0 1'/>
 70                 </Appearance>
 71            </Shape>
 72       </Scene>
 73  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF node: ksh_appearance_1

Index for Viewpoint node: Viewpoint_1
-->
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/TrimmedNurbsWithHoleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/NURBS/TrimmedNurbsWithHole.x3d -->

<!-- Color 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)
-->

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