@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleGenerator.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_14, :meta_1_15, :meta_1_16, :meta_1_17, :meta_1_18, :meta_1_19, :meta_1_20, :meta_1_21, :meta_1_22 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CapsuleGenerator.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Capsule has top and bottom hemispheres with connected sides, with adjustable parameters in the contained Script fields. A Script node computes all coordIndex and Coordinate point values. X3D source for the produced capsule also appears on the player console.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '13 October 2014' ;
  x3do:name 'created' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CapsuleGenerator.log.txt' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CapsuleComparison.x3d' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'InstantReality and BSContact work' ;
  x3do:name 'info' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'H3DViewer: missing Script appinfo and new SFInt32 when running CapsuleGenerator.js; got bugtracker?' ;
  x3do:name 'TODO' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wikipedia.org/wiki/Capsule_(geometry)' ;
  x3do:name 'reference' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wiktionary.org/wiki/capsule' ;
  x3do:name 'reference' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'This tessellation is not geodesic because the polygons are computed using rectangular quadrilaterals and vertical levels rather than triangulated shortest paths.' ;
  x3do:name 'info' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wiktionary.org/wiki/geodesic' ;
  x3do:name 'reference' .
:meta_1_14 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wiktionary.org/wiki/geodesic_dome' ;
  x3do:name 'reference' .
:meta_1_15 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wikipedia.org/wiki/Geodesic' ;
  x3do:name 'reference' .
:meta_1_16 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://en.wikipedia.org/wiki/Geodesic_grid' ;
  x3do:name 'reference' .
:meta_1_17 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/NsidedPolygon.java' ;
  x3do:name 'reference' .
:meta_1_18 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemisphereExample.x3d' ;
  x3do:name 'reference' .
:meta_1_19 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemispherePrototype.x3d' ;
  x3do:name 'reference' .
:meta_1_20 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleGenerator.x3d' ;
  x3do:name 'identifier' .
:meta_1_21 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_22 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "CapsuleGenerator.x3d" .
:meta dcterms:description "Capsule has top and bottom hemispheres with connected sides, with adjustable parameters in the contained Script fields. A Script node computes all coordIndex and Coordinate point values. X3D source for the produced capsule also appears on the player console." .
:meta dcterms:created "13 October 2014" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:reference "CapsuleGenerator.log.txt" .
:meta dcterms:reference "CapsuleComparison.x3d" .
:meta dcterms:info "InstantReality and BSContact work" .
:meta dcterms:reference "https://en.wikipedia.org/wiki/Capsule_(geometry)" .
:meta dcterms:reference "https://en.wiktionary.org/wiki/capsule" .
:meta dcterms:info "This tessellation is not geodesic because the polygons are computed using rectangular quadrilaterals and vertical levels rather than triangulated shortest paths." .
:meta dcterms:reference "https://en.wiktionary.org/wiki/geodesic" .
:meta dcterms:reference "https://en.wiktionary.org/wiki/geodesic_dome" .
:meta dcterms:reference "https://en.wikipedia.org/wiki/Geodesic" .
:meta dcterms:reference "https://en.wikipedia.org/wiki/Geodesic_grid" .
:meta dcterms:reference "https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/NsidedPolygon.java" .
:meta dcterms:reference "https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemisphereExample.x3d" .
:meta dcterms:reference "https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemispherePrototype.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleGenerator.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, :Background_2_2, :Viewpoint_2_3, :Capsule, :CapsuleGeneratorScript ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_7 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'CapsuleGenerator.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.5 1 0.9 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Capsule Generator' ;
  x3do:position ( 0 0 4 ) .
:Capsule a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Scene ;
  x3do:hasGeometry :COMPUTED_IFS ;
  x3do:hasAppearance :Appearance_2_4_2 ;
  x3do:DEF 'Capsule' .
:COMPUTED_IFS a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Capsule ;
  x3do:hasCoord :COMPUTED_COORDINATE ;
  x3do:DEF 'COMPUTED_IFS' ;
  x3do:creaseAngle 0.785398 .
:COMPUTED_COORDINATE a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :COMPUTED_IFS ;
  x3do:DEF 'COMPUTED_COORDINATE' .
:Appearance_2_4_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Capsule ;
  x3do:hasMaterial :Material_2_4_2_1 .
:Material_2_4_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2 ;
  x3do:emissiveColor ( 0.2 0.5 0 ) .
:CapsuleGeneratorScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_5_1, :field_2_5_2, :field_2_5_3, :field_2_5_4, :field_2_5_5, :field_2_5_6, :field_2_5_7, :field_2_5_8, :field_2_5_9, :field_2_5_10, :field_2_5_11, :field_2_5_12, :field_2_5_13 ;
  x3do:DEF 'CapsuleGeneratorScript' ;
  x3do:url '"CapsuleGenerator.js" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleGenerator.js"' .
:field_2_5_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'total height, includes top and bottom hemispheres' ;
  x3do:name 'height' ;
  x3do:type 'SFFloat' ;
  x3do:value 2.0 .
:field_2_5_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'for cylinder and hemispherical end caps' ;
  x3do:name 'radius' ;
  x3do:type 'SFFloat' ;
  x3do:value 0.5 .
:field_2_5_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'horizontal resolution for cylinder and hemispherical end caps' ;
  x3do:name 'numberOfPoints' ;
  x3do:type 'SFInt32' ;
  x3do:value 36 .
:field_2_5_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'vertical resolution for cylinder and hemispherical end caps' ;
  x3do:name 'numberOfLevels' ;
  x3do:type 'SFInt32' ;
  x3do:value 10 .
:field_2_5_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'radial scale factor' ;
  x3do:name 'horizontalScale' ;
  x3do:type 'SFFloat' ;
  x3do:value 1.0 .
:field_2_5_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'vertical scale factor' ;
  x3do:name 'verticalScale' ;
  x3do:type 'SFFloat' ;
  x3do:value 1.0 .
:field_2_5_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to draw top hemisphere' ;
  x3do:name 'top' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_5_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to draw side cylinder' ;
  x3do:name 'side' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_5_9 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to draw bottom hemisphere' ;
  x3do:name 'bottom' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_5_10 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'points for Coordinate node' ;
  x3do:name 'pointsComputed' ;
  x3do:type 'MFVec3f' .
:field_2_5_11 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'index values for IFS' ;
  x3do:name 'indicesComputed' ;
  x3do:type 'MFInt32' .
:field_2_5_12 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to trace output values on X3D browser console' ;
  x3do:name 'traceEnabled' ;
  x3do:type 'SFBool' ;
  x3do:value false .
:field_2_5_13 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CapsuleGeneratorScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'determines console output node type: polygons=IndexedFaceSet, lines=IndexedLineSet, points=PointSet' ;
  x3do:name 'geometryType' ;
  x3do:type 'SFString' ;
  x3do:value 'polygons' .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'indicesComputed' ;
  x3do:fromNode 'CapsuleGeneratorScript' ;
  x3do:toField 'set_coordIndex' ;
  x3do:toNode 'COMPUTED_IFS' .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'pointsComputed' ;
  x3do:fromNode 'CapsuleGeneratorScript' ;
  x3do:toField 'set_point' ;
  x3do:toNode 'COMPUTED_COORDINATE' .
