X3D Model Documentation: CutPlane.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='CutPlane.x3d'/>
  6            <meta name='descriptioncontent='Cutting plane demo where users can drag two slice interfaces to show the cross sections of a volume.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='Imagecontent='CutPlane.png'/>
 13            <meta name='referencecontent='originals/cutplane.wrl'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 15            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0008.htm'/>
 17            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0498.htm'/>
 18            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 19            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 20            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/CutPlane.x3d'/>
 21            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 22            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 23            <meta name='licensecontent='../license.html'/>
 24       </head>
<!--

<!-- to top Index for DEF node:

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definitions: SlidingPlane, TexturePlane
-->
 25       <Scene>
 26            <!-- This sliding cutting plane world illustrates the use of the 'SlidingPlane' prototype node defined in the external file 'cut.wrl'. That node creates a plane that slides back and forth, changing the texture on it based upon the plane's X position. -->
 27            <ExternProtoDeclare name='TexturePlane'   url=' "Cut.x3d#TexturePlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.x3d#TexturePlane" "Cut.wrl#TexturePlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.wrl#TexturePlane" '>
 28                 <field name='texturestype='MFNodeaccessType='initializeOnly'/>
 29                 <field name='set_fractiontype='SFFloataccessType='inputOnly'/>
 30            </ExternProtoDeclare>
 31            <ExternProtoDeclare name='SlidingPlane'   url=' "Cut.x3d#SlidingPlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.x3d#SlidingPlane" "Cut.wrl#SlidingPlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.wrl#SlidingPlane" '>
 32                 <field name='texturestype='MFNodeaccessType='initializeOnly'/>
 33                 <field name='minMaxXtype='SFVec2faccessType='initializeOnly'/>
 34                 <field name='initialXtype='SFFloataccessType='initializeOnly'/>
 35            </ExternProtoDeclare>
 36            <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Cutting Plane'/>
 37            <Viewpoint description='Entry vieworientation='0.0 1.0 0.0 0.785position='4.0 0.4 2.5'/>
 38            <NavigationInfo/>
 39            <Background skyAngle='1.57 1.87skyColor='0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.3'/>
 40            <Shape>
 41                 <Appearance>
 42                      <TextureTransform translation='0.5 0.5'/>
 43                      <ImageTexture   url=' "grill.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/grill.png " '/>
 44                 </Appearance>
 45                 <IndexedFaceSet solid='falsecoordIndex='0 1 2 3 -1 4 5 6 7 -1 8 9 10 11 -1texCoordIndex='0 1 2 3 -1 1 2 3 0 -1 4 5 6 7 -1'>
 46                      <TextureCoordinate point='0.0 0.0 0.0 8.0 4.0 8.0 4.0 0.0 0.0 0.0 4.0 0.0 4.0 4.0 0.0 4.0'/>
 47                      <Coordinate point='-1.0 -1.0 0.0 -1.0 -1.0 -4.0 -1.0 1.0 -4.0 -1.0 1.0 0.0 -1.0 -1.0 0.0 1.0 -1.0 0.0 1.0 -1.0 -4.0 -1.0 -1.0 -4.0 -1.0 -1.0 -4.0 1.0 -1.0 -4.0 1.0 1.0 -4.0 -1.0 1.0 -4.0'/>
 48                 </IndexedFaceSet>
 49            </Shape>
 50            <Transform rotation='0.0 1.0 0.0 1.571translation='-1.0 1.3 -2.0'>
 51                 <Shape>
 52                      <Appearance/>
 53                      <Text string='"Time (sec)"'>
 54                           <FontStyle justify='"MIDDLE" "MIDDLE"size='0.4style='BOLD'/>
 55                      </Text>
 56                 </Shape>
 57            </Transform>
 58            <!-- Create two moving cutting planes, one initially at the front and the other initially at the back. -->
 59            <ProtoInstance name='SlidingPlane'>
 60                 <fieldValue name='textures'>
 61                      <ImageTexture   url=' "cp1.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp1.png " '/>
 62                      <ImageTexture   url=' "cp2.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp2.png " '/>
 63                      <ImageTexture   url=' "cp3.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp3.png " '/>
 64                      <ImageTexture   url=' "cp4.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp4.png " '/>
 65                      <ImageTexture   url=' "cp5.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp5.png " '/>
 66                      <ImageTexture   url=' "cp6.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp6.png " '/>
 67                      <ImageTexture   url=' "cp7.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp7.png " '/>
 68                      <ImageTexture   url=' "cp8.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp8.png " '/>
 69                      <ImageTexture   url=' "cp9.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp9.png " '/>
 70                      <ImageTexture   url=' "cp10.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp10.png " '/>
 71                 </fieldValue>
 72                 <fieldValue name='minMaxXvalue='0.0 4.0'/>
 73                 <fieldValue name='initialXvalue='0.0'/>
 74            </ProtoInstance>
 75            <ProtoInstance name='SlidingPlane'>
 76                 <fieldValue name='textures'>
 77                      <ImageTexture   url=' "cp1.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp1.png " '/>
 78                      <ImageTexture   url=' "cp2.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp2.png " '/>
 79                      <ImageTexture   url=' "cp3.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp3.png " '/>
 80                      <ImageTexture   url=' "cp4.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp4.png " '/>
 81                      <ImageTexture   url=' "cp5.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp5.png " '/>
 82                      <ImageTexture   url=' "cp6.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp6.png " '/>
 83                      <ImageTexture   url=' "cp7.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp7.png " '/>
 84                      <ImageTexture   url=' "cp8.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp8.png " '/>
 85                      <ImageTexture   url=' "cp9.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp9.png " '/>
 86                      <ImageTexture   url=' "cp10.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp10.png " '/>
 87                 </fieldValue>
 88                 <fieldValue name='minMaxXvalue='0.0 4.0'/>
 89                 <fieldValue name='initialXvalue='3.6'/>
 90            </ProtoInstance>
 91       </Scene>
 92  </X3D>
<!--

<!-- to top Index for DEF node:

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definitions: SlidingPlane, TexturePlane
-->
X3D Tooltips element index: Appearance, Background, Coordinate, ExternProtoDeclare, field, fieldValue, FontStyle, head, ImageTexture, IndexedFaceSet, meta, NavigationInfo, ProtoInstance, Scene, Shape, Text, TextureCoordinate, TextureTransform, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.


ProtoInstance
SlidingPlane
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
SlidingPlane
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/CutPlaneIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/CutPlane.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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