@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/BoxSwitch.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10, :meta_1_11, :meta_1_12, :meta_1_13 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'BoxSwitch.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '30 December 2015' ;
  x3do:name 'created' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '26 March 2026' ;
  x3do:name 'modified' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Demonstrate simple Switch animation by sequencing through a set of Box nodes that are each covered by a different ImageTexture.' ;
  x3do:name 'description' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CubeWithLabeledSidesViewpointSequencer.png' ;
  x3do:name 'Image' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'BoxSwitch.mp4' ;
  x3do:name 'MovingImage' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CubeWithLabeledSides.x3d' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'images/CubeSideImages.pdf' ;
  x3do:name 'drawing' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'images/CubeSideImages.vsd' ;
  x3do:name 'drawing' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/BoxSwitch.x3d' ;
  x3do:name 'identifier' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "BoxSwitch.x3d" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "30 December 2015" .
:meta dcterms:modified "26 March 2026" .
:meta dcterms:description "Demonstrate simple Switch animation by sequencing through a set of Box nodes that are each covered by a different ImageTexture." .
:meta dcterms:Image "CubeWithLabeledSidesViewpointSequencer.png" .
:meta dcterms:MovingImage "BoxSwitch.mp4" .
:meta dcterms:reference "CubeWithLabeledSides.x3d" .
:meta dcterms:drawing "images/CubeSideImages.pdf" .
:meta dcterms:drawing "images/CubeSideImages.vsd" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/BoxSwitch.x3d" .
:meta dcterms:generator "X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_2, :NavigationInfo_2_3, :BoxSwitcher, :Clock, :Sequencer, :OrbitingView, :CircularPathPositionInterpolator, :CenterFacingOrientationInterpolator, :Viewpoint_2_16, :Viewpoint_2_17, :Viewpoint_2_18, :Viewpoint_2_19, :Viewpoint_2_20, :Viewpoint_2_21 ;
  x3do:hasROUTE :ROUTE_2_7, :ROUTE_2_8, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_14, :ROUTE_2_15 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'BoxSwitch.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.8 0.8 0.9 ) .
:NavigationInfo_2_3 a owl:NamedIndividual, x3do:NavigationInfo ;
  x3do:hasParent :Scene ;
  x3do:type '"EXAMINE" "FLY" "WALK" "ANY"' .
:BoxSwitcher a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_4_1, :Shape_2_4_2, :Shape_2_4_3, :Shape_2_4_4, :Shape_2_4_5, :Shape_2_4_6 ;
  x3do:DEF 'BoxSwitcher' ;
  x3do:whichChoice -1 .
:Shape_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox ;
  x3do:hasAppearance :Appearance_2_4_1_2 .
:UnitBox a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:DEF 'UnitBox' .
:Appearance_2_4_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasTexture :ImageTexture_2_4_1_2_1 .
:ImageTexture_2_4_1_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_1_2 ;
  x3do:url '"images/RedImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/RedImage.png"' .
:Shape_2_4_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox-USE-1 ;
  x3do:hasAppearance :Appearance_2_4_2_2 .
:UnitBox-USE-1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_2 ;
  owl:sameAs :UnitBox . # DEF matching this USE
:Appearance_2_4_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_2 ;
  x3do:hasTexture :ImageTexture_2_4_2_2_1 .
:ImageTexture_2_4_2_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_2_2 ;
  x3do:url '"images/GreenImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/GreenImage.png"' .
:Shape_2_4_3 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox-USE-2 ;
  x3do:hasAppearance :Appearance_2_4_3_2 .
:UnitBox-USE-2 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_3 ;
  owl:sameAs :UnitBox . # DEF matching this USE
:Appearance_2_4_3_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_3 ;
  x3do:hasTexture :ImageTexture_2_4_3_2_1 .
:ImageTexture_2_4_3_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_3_2 ;
  x3do:url '"images/TurquoiseImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/TurquoiseImage.png"' .
:Shape_2_4_4 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox-USE-3 ;
  x3do:hasAppearance :Appearance_2_4_4_2 .
:UnitBox-USE-3 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_4 ;
  owl:sameAs :UnitBox . # DEF matching this USE
:Appearance_2_4_4_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_4 ;
  x3do:hasTexture :ImageTexture_2_4_4_2_1 .
:ImageTexture_2_4_4_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_4_2 ;
  x3do:url '"images/YellowImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/YellowImage.png"' .
:Shape_2_4_5 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox-USE-4 ;
  x3do:hasAppearance :Appearance_2_4_5_2 .
:UnitBox-USE-4 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_5 ;
  owl:sameAs :UnitBox . # DEF matching this USE
:Appearance_2_4_5_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_5 ;
  x3do:hasTexture :ImageTexture_2_4_5_2_1 .
:ImageTexture_2_4_5_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_5_2 ;
  x3do:url '"images/WhiteImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/WhiteImage.png"' .
:Shape_2_4_6 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :BoxSwitcher ;
  x3do:hasGeometry :UnitBox-USE-5 ;
  x3do:hasAppearance :Appearance_2_4_6_2 .
:UnitBox-USE-5 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_6 ;
  owl:sameAs :UnitBox . # DEF matching this USE
:Appearance_2_4_6_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_6 ;
  x3do:hasTexture :ImageTexture_2_4_6_2_1 .
:ImageTexture_2_4_6_2_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_4_6_2 ;
  x3do:url '"images/GreyImage.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/GreyImage.png"' .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock' ;
  x3do:cycleInterval '12' ;
  x3do:loop true .
:Sequencer a owl:NamedIndividual, x3do:IntegerSequencer ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Sequencer' ;
  x3do:key ( 0 0.1667 0.3333 0.5 0.6667 0.8333 1 ) ;
  x3do:keyValue ( 0 1 2 3 4 5 0 ) .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'Sequencer' .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'Sequencer' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'BoxSwitcher' .
:OrbitingView a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:DEF 'OrbitingView' ;
  x3do:description 'Orbiting view' ;
  x3do:orientation ( 0 1 0 -1.57 ) ;
  x3do:position ( -8 0 0 ) .
:CircularPathPositionInterpolator a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'CircularPathPositionInterpolator' ;
  x3do:key ( 0 0.02778 0.05556 0.08333 0.11111 0.13889 0.16667 0.19444 0.22222 0.25 0.27778 0.30556 0.33333 0.36111 0.38889 0.41667 0.44444 0.47222 0.5 0.52778 0.55556 0.58333 0.61111 0.63889 0.66667 0.69444 0.72222 0.75 0.77778 0.80556 0.83333 0.86111 0.88889 0.91667 0.94444 0.97222 1 ) ;
  x3do:keyValue ( 0 0 8 1.389 0 7.878 2.736 0 7.518 4 0 6.928 5.142 0 6.128 6.128 0 5.142 6.928 0 4 7.518 0 2.736 7.878 0 1.389 8 0 0 7.878 0 -1.389 7.518 0 -2.736 6.928 0 -4 6.128 0 -5.142 5.142 0 -6.128 4 0 -6.928 2.736 0 -7.518 1.389 0 -7.878 0 0 -8 -1.389 0 -7.878 -2.736 0 -7.518 -4 0 -6.928 -5.142 0 -6.128 -6.128 0 -5.142 -6.928 0 -4 -7.518 0 -2.736 -7.878 0 -1.389 -8 0 -0 -7.878 0 1.389 -7.518 0 2.736 -6.928 0 4 -6.128 0 5.142 -5.142 0 6.128 -4 0 6.928 -2.736 0 7.518 -1.389 0 7.878 0 0 8 ) .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'CircularPathPositionInterpolator' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'CircularPathPositionInterpolator' ;
  x3do:toField 'position' ;
  x3do:toNode 'OrbitingView' .
:CenterFacingOrientationInterpolator a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'CenterFacingOrientationInterpolator' ;
  x3do:key ( 0 0.3333 0.6667 1 ) ;
  x3do:keyValue ( 0 1 0 0 0 1 0 2.094395 0 1 0 4.18879 0 1 0 0 ) .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'CenterFacingOrientationInterpolator' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'CenterFacingOrientationInterpolator' ;
  x3do:toField 'orientation' ;
  x3do:toNode 'OrbitingView' .
:Viewpoint_2_16 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Front view' ;
  x3do:orientation ( 0 1 0 1.57 ) ;
  x3do:position ( 8 0 0 ) .
:Viewpoint_2_17 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Back view' ;
  x3do:orientation ( 0 1 0 -1.57 ) ;
  x3do:position ( -8 0 0 ) .
:Viewpoint_2_18 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Left view' ;
  x3do:position ( 0 0 8 ) .
:Viewpoint_2_19 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Right view' ;
  x3do:orientation ( 0 1 0 3.1416 ) ;
  x3do:position ( 0 0 -8 ) .
:Viewpoint_2_20 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Top view' ;
  x3do:orientation ( 1 0 0 -1.57 ) ;
  x3do:position ( 0 8 0 ) .
:Viewpoint_2_21 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Bottom view' ;
  x3do:orientation ( 1 0 0 1.57 ) ;
  x3do:position ( 0 -8 0 ) .
