<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<component level='5name='Rendering'/>
<meta name='titlecontent='ClipPlaneExample.x3d'/>
<meta name='creatorcontent='Nicholas Polys, Don Brutzman'/>
<meta name='createdcontent='20 February 2013'/>
<meta name='modifiedcontent='31 October 2017'/>
<meta name='descriptioncontent='Illustrate use of two ClipPlane intersections across four sets of primitive geometry. Line indicators are outside the scope of the ClipPlane transformation hierarchy and so are not clipped.'/>
<meta name='referencecontent='ClipPlaneExample.x3d'/>
<meta name='Imagecontent='ClipPlaneExampleFront.png'/>
<meta name='Imagecontent='ClipPlaneExampleOblique.png'/>
<meta name='Imagecontent='ClipPlaneExampleOverhead.png'/>
<meta name='Imagecontent='ClipPlaneExampleSide.png'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/CAD/ClipPlaneExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='generatorcontent='Vivaty Studio'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<!-- TODO Schematron error for orientation='0 0 0 0' -->
<Viewpoint description='ClipPlanes front viewposition='0 1 10'/>
<Viewpoint description='ClipPlanes oblique vieworientation='1 0 0 -0.851966position='0 8 7'/>
<Viewpoint description='ClipPlanes overhead vieworientation='1 0 0 -1.570796position='0 12 0'/>
<Viewpoint description='ClipPlanes side vieworientation='-0.03326 0.99889 0.03326 1.571904position='15 1 0'/>
<Background DEF='WhiteBackgroundgroundColor='1 1 1skyColor='1 1 1'/>
<Group DEF='ClipPlaneGroup'>
<!-- ClipPlane nodes affect peers and children -->
<ClipPlane DEF='ClipPlaneHorizontal'/>
<ClipPlane DEF='ClipPlaneVerticalplane='0 0 -1 0'/>
<!-- Non-standard scripting animation test for ClipPlane <PythonScript DEF="PS" url="OpacityMapStyle.py" /> <ROUTE fromNode='timer_pos0' fromField='value_changed' toNode='PS' toField='planeEquation'/> <ROUTE fromNode='PS' fromField='planeEquation' toNode='CP' toField='plane'/> -->
<!-- <TimeSensor DEF='timer' cycleInterval='13.000' loop='true' startTime='0.000'/> <ROUTE fromNode='timer' fromField='fraction_changed' toNode='timer_pos0' toField='set_fraction'/> <ROUTE fromNode='timer_pos0' fromField='value_changed' toNode='move' toField='set_translation'/> -->
<Group DEF='PrimitiveShapes'>
<WorldInfo info='"This Web3D Content was created with Vivaty Studio, a Web3D authoring tool" "www.mediamachines.com"title='primitives'/>
<Transform DEF='dad_Box1translation='-3 0 0'>
<Shape DEF='Box1'>
<Appearance>
<Material DEF='RedambientIntensity='.2diffuseColor='1 0 0shininess='.2'/>
</Appearance>
<Box DEF='GeoBox1solid='false'/>
</Shape>
</Transform>
<Transform DEF='dad_Cylinder1translation='-1 0 0'>
<Shape DEF='Cylinder1'>
<Appearance>
<Material DEF='GreenambientIntensity='.2diffuseColor='0 1 0shininess='.2'/>
</Appearance>
<Cylinder DEF='GeoCylinder1solid='false'/>
</Shape>
</Transform>
<Transform DEF='dad_Cone1translation='1 0 0'>
<Shape DEF='Cone1'>
<Appearance>
<Material DEF='BlueambientIntensity='.2diffuseColor='0 0 1shininess='.2'/>
</Appearance>
<Cone DEF='GeoCone1solid='false'/>
</Shape>
</Transform>
<Transform DEF='dad_Sphere1translation='3 0 0'>
<Shape DEF='Sphere1'>
<Appearance>
<Material DEF='Shiny_YellowambientIntensity='.2diffuseColor='1 1 0shininess='.1specularColor='1 1 0'/>
</Appearance>
<Sphere DEF='GeoSphere1solid='false'/>
</Shape>
</Transform>
<Transform DEF='dad_Light1translation='0 5 0'>
<PointLight DEF='Light1'/>
</Transform>
<Transform DEF='dad_Background1translation='-.73213 4.14112 0'>
<Background DEF='Background1groundColor='1 1 1skyColor='1 1 1'/>
</Transform>
</Group>
<Transform translation='0 3 0'>
<Group USE='PrimitiveShapes'/>
</Transform>
</Group>
<!-- Keep boundary lines outside of scope of the two clipping planes so that they can illustrate boundaries without being cut off -->
<Group DEF='BoundaryLines'>
<Transform DEF='movetranslation='0 .00001 0'>
<Shape DEF='PlaneOutlineHorizontal'>
<Appearance DEF='BoundaryLineAppearance'>
<Material ambientIntensity='.2emissiveColor='0.1 0.1 0.1'/>
</Appearance>
<IndexedLineSet coordIndex='0 1 2 3 0 -1'>
<Coordinate point='5 0 -2 5 0 2 -5 0 2 -5 0 -2'/>
</IndexedLineSet>
</Shape>
</Transform>
<PositionInterpolator DEF='timer_pos0key='0 .5 1keyValue='0 2 0 0 -2 0 0 2 0'/>
<Transform rotation='1 0 0 -1.578'>
<Transform DEF='move2translation='0 .00001 0'>
<Shape DEF='PlaneOutlineVertical'>
<Appearance USE='BoundaryLineAppearance'/>
<!-- also includes center line -->
<IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 -1'>
<Coordinate point='5 0 -2 5 0 4 -5 0 4 -5 0 -2 5 0 0 -5 0 0'/>
</IndexedLineSet>
</Shape>
</Transform>
</Transform>
</Group>
</Scene>
</X3D>
<!--

Index for DEF nodes : Background1, Blue, BoundaryLineAppearance, BoundaryLines, Box1, ClipPlaneGroup, ClipPlaneHorizontal, ClipPlaneVertical, Cone1, Cylinder1, dad_Background1, dad_Box1, dad_Cone1, dad_Cylinder1, dad_Light1, dad_Sphere1, GeoBox1, GeoCone1, GeoCylinder1, GeoSphere1, Green, Light1, move, move2, PlaneOutlineHorizontal, PlaneOutlineVertical, PrimitiveShapes, Red, Shiny_Yellow, Sphere1, timer_pos0, WhiteBackground

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->