@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ArbitraryAxisCylinderSensorPrototype.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.0' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.0.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ArbitraryAxisCylinderSensorPrototype.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Modified CylinderSensor oriented about an arbitrary axis, relative to peer/child geometry that remains oriented to its original axis. Originally authored by Don Brutzman&apos;s MV4204 class, with modifications by Maj James Breitinger USMC to include min/max angles of rotation and object center. Motivation: Modify example shown by Chapter 9 Figure 7 to build a PROTO for a CylinderSensor oriented about an arbitrary axis.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ArbitraryAxisCylinderSensor operates on its children, NOT on its peers. This variation is necessary in order to accomplish the desired Transform rotation to a new orientation axis.' ;
  x3do:name 'info' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 October 1998' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 November 2019' ;
  x3do:name 'modified' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ArbitraryAxisCylinderSensorExamples.x3d' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ArbitraryAxisCylinderSensorPrototypeOriginal.wrl' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ArbitraryAxisCylinderSensorPrototype.x3d' ;
  x3do:name 'identifier' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'The VRML 2.0 Sourcebook (Copyright 1997 By Andrea L. Ames, David R. Nadeau, and John L. Moreland)' ;
  x3do:name 'reference' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "ArbitraryAxisCylinderSensorPrototype.x3d" .
:meta dcterms:description "Modified CylinderSensor oriented about an arbitrary axis, relative to peer/child geometry that remains oriented to its original axis. Originally authored by Don Brutzman's MV4204 class, with modifications by Maj James Breitinger USMC to include min/max angles of rotation and object center. Motivation: Modify example shown by Chapter 9 Figure 7 to build a PROTO for a CylinderSensor oriented about an arbitrary axis." .
:meta dcterms:info "ArbitraryAxisCylinderSensor operates on its children, NOT on its peers. This variation is necessary in order to accomplish the desired Transform rotation to a new orientation axis." .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "1 October 1998" .
:meta dcterms:modified "28 November 2019" .
:meta dcterms:reference "ArbitraryAxisCylinderSensorExamples.x3d" .
:meta dcterms:reference "ArbitraryAxisCylinderSensorPrototypeOriginal.wrl" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ArbitraryAxisCylinderSensorPrototype.x3d" .
:meta dcterms:reference "The VRML 2.0 Sourcebook (Copyright 1997 By Andrea L. Ames, David R. Nadeau, and John L. Moreland)" .
:meta dcterms:generator "X3D-Edit 3.2, 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_3, :Anchor_2_4 ;
  x3do:hasProtoDeclare :ProtoDeclare_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'ArbitraryAxisCylinderSensorPrototype.x3d' .
:ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_2_1 ;
  x3do:hasProtoBody :ProtoBody_2_2_2 ;
  x3do:appinfo 'Modified CylinderSensor with children nodes oriented about an arbitrary axis. Warning: ArbitraryAxisCylinderSensor affects children, not peers.' ;
  x3do:name 'ArbitraryAxisCylinderSensor' .
:ProtoInterface_2_2_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasField :field_2_2_1_1, :field_2_2_1_2, :field_2_2_1_3, :field_2_2_1_4, :field_2_2_1_5, :field_2_2_1_6, :field_2_2_1_7, :field_2_2_1_8, :field_2_2_1_9, :field_2_2_1_10, :field_2_2_1_11, :field_2_2_1_12, :field_2_2_1_13, :field_2_2_1_14, :field_2_2_1_15, :field_2_2_1_16, :field_2_2_1_17 .
:field_2_2_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'shifted axis of rotation from local vertical, default 1 0 0 0' ;
  x3do:name 'shiftRotationAxis' ;
  x3do:type 'SFRotation' ;
  x3do:value ( 1 0 0 0 ) .
:field_2_2_1_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'local center for axis of rotation, default 0 0 0' ;
  x3do:name 'center' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 0 0 0 ) .
:field_2_2_1_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to show visualization shape to show orientation and cylindrical mapping of mouse movements by sensor, default true' ;
  x3do:name 'showCylinderSensorShape' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_2_1_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'scale for visualization shape, default 1 1 1' ;
  x3do:name 'scaleCylinderSensorShape' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 1 1 1 ) .
:field_2_2_1_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'color for visualization shape, default 0.9 0.9 0.4' ;
  x3do:name 'colorCylinderSensorShape' ;
  x3do:type 'SFColor' ;
  x3do:value ( 0.9 0.9 0.4 ) .
:field_2_2_1_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'transparency for visualization shape' ;
  x3do:name 'transparencyCylinderSensorShape' ;
  x3do:type 'SFFloat' ;
  x3do:value 0.8 .
:field_2_2_1_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'children nodes affected by ArbitraryAxisCylinderSensor' ;
  x3do:name 'children' ;
  x3do:type 'MFNode' .
:field_2_2_1_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'determines whether previous offset values are remembered/accumulated, default true' ;
  x3do:name 'autoOffset' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_2_1_9 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'Text tooltip displayed for user interaction' ;
  x3do:name 'description' ;
  x3do:type 'SFString' ;
  x3do:value 'Select and drag to rotate ArbitraryAxisCylinderSensor' .
:field_2_2_1_10 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'diskAngle 0 forces disk-like behavior, diskAngle 1.57 (90 degrees) forces cylinder-like behavior, default 0.262, range [0,pi/2]' ;
  x3do:name 'diskAngle' ;
  x3do:type 'SFFloat' ;
  x3do:value 0.262 .
:field_2_2_1_11 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'enables/disables node operation, default true' ;
  x3do:name 'enabled' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_2_1_12 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'clamps rotation_changed events, default 0, range [-2pi,2pi]' ;
  x3do:name 'minAngle' ;
  x3do:type 'SFFloat' ;
  x3do:value 0 .
:field_2_2_1_13 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:appinfo 'clamps rotation_changed events, default -1, range [-2pi,2pi]' ;
  x3do:name 'maxAngle' ;
  x3do:type 'SFFloat' ;
  x3do:value -1 .
:field_2_2_1_14 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'sends event and remembers last value sensed, default 0, range (-infinity,infinity)' ;
  x3do:name 'offset' ;
  x3do:type 'SFFloat' ;
  x3do:value 0 .
:field_2_2_1_15 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'output event isActive=true when primary mouse button is pressed, output event isActive=false when released.' ;
  x3do:name 'isActive' ;
  x3do:type 'SFBool' .
:field_2_2_1_16 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'rotation_changed events equal sum of relative bearing changes plus offset value about Y-axis in local coordinate system' ;
  x3do:name 'rotation_changed' ;
  x3do:type 'SFRotation' .
:field_2_2_1_17 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'trackPoint_changed events give intersection point of bearing with sensor&apos;s virtual geometry' ;
  x3do:name 'trackPoint_changed' ;
  x3do:type 'SFVec3f' .
:ProtoBody_2_2_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasChildren :ArbitraryAxisTransform ;
  x3do:hasROUTE :ROUTE_2_2_2_2, :ROUTE_2_2_2_3, :ROUTE_2_2_2_4 .
:ArbitraryAxisTransform a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:hasIS :IS_2_2_2_1_1 ;
  x3do:hasChildren :RotatedCylinderSensor, :CylinderSensorRotationTransform, :NegationScript, :HideSensorShapeScript ;
  x3do:DEF 'ArbitraryAxisTransform' .
:IS_2_2_2_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :ArbitraryAxisTransform ;
  x3do:hasConnect :connect_2_2_2_1_1_1, :connect_2_2_2_1_1_2 .
:connect_2_2_2_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_1 ;
  x3do:nodeField 'rotation' ;
  x3do:protoField 'shiftRotationAxis' .
:connect_2_2_2_1_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_1 ;
  x3do:nodeField 'center' ;
  x3do:protoField 'center' .
:RotatedCylinderSensor a owl:NamedIndividual, x3do:CylinderSensor ;
  x3do:hasParent :ArbitraryAxisTransform ;
  x3do:hasIS :IS_2_2_2_1_2_1 ;
  x3do:DEF 'RotatedCylinderSensor' .
:IS_2_2_2_1_2_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :RotatedCylinderSensor ;
  x3do:hasConnect :connect_2_2_2_1_2_1_1, :connect_2_2_2_1_2_1_2, :connect_2_2_2_1_2_1_3, :connect_2_2_2_1_2_1_4, :connect_2_2_2_1_2_1_5, :connect_2_2_2_1_2_1_6, :connect_2_2_2_1_2_1_7, :connect_2_2_2_1_2_1_8, :connect_2_2_2_1_2_1_9, :connect_2_2_2_1_2_1_10 .
:connect_2_2_2_1_2_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'autoOffset' ;
  x3do:protoField 'autoOffset' .
:connect_2_2_2_1_2_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'description' ;
  x3do:protoField 'description' .
:connect_2_2_2_1_2_1_3 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'diskAngle' ;
  x3do:protoField 'diskAngle' .
:connect_2_2_2_1_2_1_4 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'enabled' ;
  x3do:protoField 'enabled' .
:connect_2_2_2_1_2_1_5 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'minAngle' ;
  x3do:protoField 'minAngle' .
:connect_2_2_2_1_2_1_6 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'maxAngle' ;
  x3do:protoField 'maxAngle' .
:connect_2_2_2_1_2_1_7 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'offset' ;
  x3do:protoField 'offset' .
:connect_2_2_2_1_2_1_8 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'isActive' ;
  x3do:protoField 'isActive' .
:connect_2_2_2_1_2_1_9 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'rotation_changed' ;
  x3do:protoField 'rotation_changed' .
:connect_2_2_2_1_2_1_10 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'trackPoint_changed' ;
  x3do:protoField 'trackPoint_changed' .
:CylinderSensorRotationTransform a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ArbitraryAxisTransform ;
  x3do:hasChildren :RestorationTransform, :ScaleSensorSwitch ;
  x3do:DEF 'CylinderSensorRotationTransform' .
:RestorationTransform a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :CylinderSensorRotationTransform ;
  x3do:hasIS :IS_2_2_2_1_3_1_1 ;
  x3do:DEF 'RestorationTransform' .
:IS_2_2_2_1_3_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :RestorationTransform ;
  x3do:hasConnect :connect_2_2_2_1_3_1_1_1, :connect_2_2_2_1_3_1_1_2 .
:connect_2_2_2_1_3_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_3_1_1 ;
  x3do:nodeField 'center' ;
  x3do:protoField 'center' .
:connect_2_2_2_1_3_1_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_3_1_1 ;
  x3do:nodeField 'children' ;
  x3do:protoField 'children' .
:ScaleSensorSwitch a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :CylinderSensorRotationTransform ;
  x3do:hasChildren :ScaleSensorShape ;
  x3do:DEF 'ScaleSensorSwitch' ;
  x3do:whichChoice 0 .
:ScaleSensorShape a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ScaleSensorSwitch ;
  x3do:hasIS :IS_2_2_2_1_3_2_1_1 ;
  x3do:hasChildren :Shape_2_2_2_1_3_2_1_2, :Shape_2_2_2_1_3_2_1_3 ;
  x3do:DEF 'ScaleSensorShape' .
:IS_2_2_2_1_3_2_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :ScaleSensorShape ;
  x3do:hasConnect :connect_2_2_2_1_3_2_1_1_1 .
:connect_2_2_2_1_3_2_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_3_2_1_1 ;
  x3do:nodeField 'scale' ;
  x3do:protoField 'scaleCylinderSensorShape' .
:Shape_2_2_2_1_3_2_1_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :ScaleSensorShape ;
  x3do:hasGeometry :Cylinder_2_2_2_1_3_2_1_2_1 ;
  x3do:hasAppearance :SensorShapeAppearance .
:Cylinder_2_2_2_1_3_2_1_2_1 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_2_2_1_3_2_1_2 ;
  x3do:height 2.5 ;
  x3do:radius 0.1 .
:SensorShapeAppearance a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_2_1_3_2_1_2 ;
  x3do:hasMaterial :SensorShapeMaterial ;
  x3do:DEF 'SensorShapeAppearance' .
:SensorShapeMaterial a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :SensorShapeAppearance ;
  x3do:hasIS :IS_2_2_2_1_3_2_1_2_2_1_1 ;
  x3do:DEF 'SensorShapeMaterial' .
:IS_2_2_2_1_3_2_1_2_2_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :SensorShapeMaterial ;
  x3do:hasConnect :connect_2_2_2_1_3_2_1_2_2_1_1_1, :connect_2_2_2_1_3_2_1_2_2_1_1_2 .
:connect_2_2_2_1_3_2_1_2_2_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_3_2_1_2_2_1_1 ;
  x3do:nodeField 'diffuseColor' ;
  x3do:protoField 'colorCylinderSensorShape' .
:connect_2_2_2_1_3_2_1_2_2_1_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_3_2_1_2_2_1_1 ;
  x3do:nodeField 'transparency' ;
  x3do:protoField 'transparencyCylinderSensorShape' .
:Shape_2_2_2_1_3_2_1_3 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :ScaleSensorShape ;
  x3do:hasGeometry :Cylinder_2_2_2_1_3_2_1_3_1 ;
  x3do:hasAppearance :SensorShapeAppearance-USE-1 .
:Cylinder_2_2_2_1_3_2_1_3_1 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_2_2_1_3_2_1_3 ;
  x3do:height 0.2 ;
  x3do:radius 1.5 .
:SensorShapeAppearance-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_2_1_3_2_1_3 ;
  owl:sameAs :SensorShapeAppearance . # DEF matching this USE
:NegationScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :ArbitraryAxisTransform ;
  x3do:hasField :field_2_2_2_1_4_1, :field_2_2_2_1_4_2, :field_2_2_2_1_4_3, :field_2_2_2_1_4_4, :field_2_2_2_1_4_5, :field_2_2_2_1_4_6 ;
  x3do:hasIS :IS_2_2_2_1_4_7 ;
  x3do:DEF 'NegationScript' ;
  x3do:directOutput true ;
  x3do:sourceCode """
ecmascript:

function initialize () {
	rotationOffset = new SFRotation (0, 1, 0, offset);  // establish initial angle
	CylinderSensorRotationTransform.rotation =
	   CylinderSensorRotationTransform.rotation.multiply (rotationOffset);
	rotationIntermediate = shiftRotationAxis;
	rotationIntermediate = rotationIntermediate.inverse ();
	rotationRestore = rotationIntermediate;
	Browser.println ('   rotationOffset=' +    rotationOffset.toString());
	Browser.println ('shiftRotationAxis=' + shiftRotationAxis.toString());
	Browser.println ('  rotationRestore=' +   rotationRestore.toString());
}
""" .
:field_2_2_2_1_4_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'shiftRotationAxis' ;
  x3do:type 'SFRotation' .
:field_2_2_2_1_4_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'offset' ;
  x3do:type 'SFFloat' .
:field_2_2_2_1_4_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'rotationRestore' ;
  x3do:type 'SFRotation' .
:field_2_2_2_1_4_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:hasChildren :CylinderSensorRotationTransform-USE-1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'CylinderSensorRotationTransform' ;
  x3do:type 'SFNode' .
:CylinderSensorRotationTransform-USE-1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :field_2_2_2_1_4_4 ;
  owl:sameAs :CylinderSensorRotationTransform . # DEF matching this USE
:field_2_2_2_1_4_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'rotationOffset' ;
  x3do:type 'SFRotation' ;
  x3do:value ( 0 1 0 0 ) .
:field_2_2_2_1_4_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :NegationScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'rotationIntermediate' ;
  x3do:type 'SFRotation' ;
  x3do:value ( 0 1 0 0 ) .
:IS_2_2_2_1_4_7 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :NegationScript ;
  x3do:hasConnect :connect_2_2_2_1_4_7_1, :connect_2_2_2_1_4_7_2 .
:connect_2_2_2_1_4_7_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_4_7 ;
  x3do:nodeField 'offset' ;
  x3do:protoField 'offset' .
:connect_2_2_2_1_4_7_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_4_7 ;
  x3do:nodeField 'shiftRotationAxis' ;
  x3do:protoField 'shiftRotationAxis' .
:HideSensorShapeScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :ArbitraryAxisTransform ;
  x3do:hasField :field_2_2_2_1_5_1, :field_2_2_2_1_5_2 ;
  x3do:hasIS :IS_2_2_2_1_5_3 ;
  x3do:DEF 'HideSensorShapeScript' ;
  x3do:sourceCode """
ecmascript:

function initialize () {
	if (showCylinderSensorShape == true)
		choiceScaleSensor =  0;
	else	choiceScaleSensor = -1;
}
""" .
:field_2_2_2_1_5_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :HideSensorShapeScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'showCylinderSensorShape' ;
  x3do:type 'SFBool' .
:field_2_2_2_1_5_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :HideSensorShapeScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'choiceScaleSensor' ;
  x3do:type 'SFInt32' .
:IS_2_2_2_1_5_3 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :HideSensorShapeScript ;
  x3do:hasConnect :connect_2_2_2_1_5_3_1 .
:connect_2_2_2_1_5_3_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_5_3 ;
  x3do:nodeField 'showCylinderSensorShape' ;
  x3do:protoField 'showCylinderSensorShape' .
:ROUTE_2_2_2_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'RotatedCylinderSensor' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'CylinderSensorRotationTransform' .
:ROUTE_2_2_2_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:fromField 'rotationRestore' ;
  x3do:fromNode 'NegationScript' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'RestorationTransform' .
:ROUTE_2_2_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:fromField 'choiceScaleSensor' ;
  x3do:fromNode 'HideSensorShapeScript' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'ScaleSensorSwitch' .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'click message to view example' ;
  x3do:position ( 0 0 8 ) .
:Anchor_2_4 a owl:NamedIndividual, x3do:Anchor ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_4_1, :SelectionAssist ;
  x3do:description 'Touch text for example' ;
  x3do:url '"ArbitraryAxisCylinderSensorExamples.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ArbitraryAxisCylinderSensorExamples.x3d" "ArbitraryAxisCylinderSensorExamples.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ArbitraryAxisCylinderSensorExamples.wrl"' .
:Shape_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Anchor_2_4 ;
  x3do:hasAppearance :Appearance_2_4_1_1 ;
  x3do:hasGeometry :Text_2_4_1_2 .
:Appearance_2_4_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1 .
:Material_2_4_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1 ;
  x3do:diffuseColor ( 0 1 1 ) ;
  x3do:emissiveColor ( 0 1 1 ) .
:Text_2_4_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasFontStyle :FontStyle_2_4_1_2_1 ;
  x3do:string '"ArbitraryAxisCylinderSensorPrototype" "is a Prototype (PROTO) definition file." "" "To see an example scene using this new node" "click this text and view" "ArbitraryAxisCylinderSensorExample"' .
:FontStyle_2_4_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_2 ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.5 .
:SelectionAssist a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Anchor_2_4 ;
  x3do:hasGeometry :Box_2_4_2_1 ;
  x3do:hasAppearance :Appearance_2_4_2_2 ;
  x3do:DEF 'SelectionAssist' .
:Box_2_4_2_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :SelectionAssist ;
  x3do:size ( 9 4 .001 ) .
:Appearance_2_4_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :SelectionAssist ;
  x3do:hasMaterial :Material_2_4_2_2_1 .
:Material_2_4_2_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2_2 ;
  x3do:transparency 0.9 .
