@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/NormalInterpolatorExample.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 'Interchange' ;
  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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'NormalInterpolatorExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Example normal (perpendicular vector) animation, where orange vectors show normal direction at each polygon vertex.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '3 May 2008' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '25 August 2023' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter19-NormalsShading/Figure19.27SquareFaceAnimatingNormals.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D NormalInterpolator example' ;
  x3do:name 'subject' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/NormalInterpolatorExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "NormalInterpolatorExample.x3d" .
:meta dcterms:description "Example normal (perpendicular vector) animation, where orange vectors show normal direction at each polygon vertex." .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "3 May 2008" .
:meta dcterms:modified "25 August 2023" .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter19-NormalsShading/Figure19.27SquareFaceAnimatingNormals.x3d" .
:meta dcterms:subject "X3D NormalInterpolator example" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/NormalInterpolatorExample.x3d" .
:meta dcterms:generator "X3D-Edit 3.3, 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, :Viewpoint_2_2, :Viewpoint_2_3, :Shape_2_4, :NormalPath, :Clock, :Shape_2_9, :NormalVectorsAnimation ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_8, :ROUTE_2_11, :ROUTE_2_12 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'NormalInterpolatorExample.x3d' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Animating normals on right vertices of a quadrilateral' ;
  x3do:position ( 0 0 8 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Other side - note difference in animated shading' ;
  x3do:orientation ( 0 1 0 3.14159 ) ;
  x3do:position ( 0 0 -7 ) .
:Shape_2_4 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Scene ;
  x3do:hasGeometry :FlatSquare ;
  x3do:hasAppearance :Appearance_2_4_2 .
:FlatSquare a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_4 ;
  x3do:hasCoord :Coordinate_2_4_1_1 ;
  x3do:hasNormal :AnimatedNormalNode ;
  x3do:DEF 'FlatSquare' ;
  x3do:coordIndex ( 0 1 2 3 ) ;
  x3do:normalIndex ( 0 1 2 3 ) ;
  x3do:solid false .
:Coordinate_2_4_1_1 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :FlatSquare ;
  x3do:point ( -2 -2 0 2 -2 0 2 2 0 -2 2 0 ) .
:AnimatedNormalNode a owl:NamedIndividual, x3do:Normal ;
  x3do:hasParent :FlatSquare ;
  x3do:DEF 'AnimatedNormalNode' ;
  x3do:vector ( 0 0 1 0 0 1 0 0 1 0 0 1 ) .
:Appearance_2_4_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4 ;
  x3do:hasMaterial :LightBlue .
:LightBlue a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2 ;
  x3do:DEF 'LightBlue' ;
  x3do:diffuseColor ( 0.3 0.6 0.9 ) .
:NormalPath a owl:NamedIndividual, x3do:NormalInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'NormalPath' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 ) .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'NormalPath' ;
  x3do:toField 'set_vector' ;
  x3do:toNode 'AnimatedNormalNode' .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock' ;
  x3do:cycleInterval '8' ;
  x3do:loop true .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'NormalPath' .
:Shape_2_9 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Scene ;
  x3do:hasGeometry :IndexedLineSet_2_9_1 ;
  x3do:hasAppearance :Appearance_2_9_2 .
:IndexedLineSet_2_9_1 a owl:NamedIndividual, x3do:IndexedLineSet ;
  x3do:hasParent :Shape_2_9 ;
  x3do:hasCoord :NormalVectors ;
  x3do:coordIndex ( 0 1 -1 2 3 -1 4 5 -1 6 7 -1 ) .
:NormalVectors a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedLineSet_2_9_1 ;
  x3do:DEF 'NormalVectors' ;
  x3do:point ( -2 -2 0 -2 -2 1 2 -2 0 2 -2 1 2 2 0 2 2 1 -2 2 0 -2 2 1 ) .
:Appearance_2_9_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_9 ;
  x3do:hasMaterial :Material_2_9_2_1 .
:Material_2_9_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_9_2 ;
  x3do:emissiveColor ( 0.9 0.6 0.1 ) .
:NormalVectorsAnimation a owl:NamedIndividual, x3do:CoordinateInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'NormalVectorsAnimation' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( -2 -2 0 -2 -2 1 2 -2 0 2 -2 1 2 2 0 2 2 1 -2 2 0 -2 2 1 -2 -2 0 -2 -2 1 2 -2 0 3 -2 0 2 2 0 3 2 0 -2 2 0 -2 2 1 -2 -2 0 -2 -2 1 2 -2 0 2 -2 1 2 2 0 2 2 1 -2 2 0 -2 2 1 ) .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'NormalVectorsAnimation' ;
  x3do:toField 'point' ;
  x3do:toNode 'NormalVectors' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'NormalVectorsAnimation' .
