| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
| 3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
| 4 | <head> |
| 5 | <component level='1' name='NURBS'/> |
| 6 | <meta name='title' content=' NurbsCurveExample.x3d '/> |
| 7 | <meta name='description' content='NurbsCurve exemplar showing controlPoint animation. Upper example has knot values explicitly defined, lower example has implicit knot values.'/> |
| 8 | <meta name='creator' content='Charles Adams, Vincent Marchetti, Don Brutzman'/> |
| 9 | <meta name='created' content='4 February 2003'/> |
| 10 | <meta name='modified' content='20 October 2019'/> |
| 11 | <meta name='MovingImage' content='videos/NurbsCurveExample.mov'/> |
| 12 | <meta name=' TODO ' content=' check NurbsCurve containerField handling and weight defaults '/> |
| 13 | <meta name='reference' content=' http://edocs.nps.edu/npspubs/scholarly/theses/2003/Jun/03Jun_Adams.pdf '/> |
| 14 | <meta name='subject' content='NURBS Curve Example'/> |
| 15 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsCurveExample.x3d '/> |
| 16 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 17 | <meta name='license' content='../license.html'/> |
| 18 | </head> |
| 19 | <Scene> |
| 20 | <WorldInfo title='NurbsCurveExample.x3d'/> |
| 21 | <Viewpoint description='NurbsCurve' position='12 7 18'/> |
| 22 | <Transform translation='0 5 0'> |
| 23 | <Shape> |
| 24 | <NurbsCurve DEF='NurbsCurveKnotted' knot='0 0 0 0 0.5 1 1 1 1' order='4' tessellation='30' weight='1 1 1 1 1' containerField='geometry'> |
| 25 |
<!-- Coordinate
np is a DEF node that has 1 USE node: USE_1
<!-- ROUTE information for np node: [from ci.value_changed to set_point ] --> <Coordinate DEF='np' containerField='controlPoint' point='4 6 0 7 12 0 11 6 0 15 2 0 20 6 0'/> |
| 26 | </NurbsCurve> |
| 27 |
<!-- Appearance
LightGreenAppearance is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='LightGreenAppearance'> |
| 28 | <Material diffuseColor='0.8 1 0.8' emissiveColor='0.8 1 0.8'/> |
| 29 | </Appearance> |
| 30 | </Shape> |
| 31 | <Transform translation='0 7 0'> |
| 32 | <Shape> |
| 33 | <Text string='"NurbsCurve with knots"'/> |
| 34 | <Appearance USE='LightGreenAppearance'/> |
| 35 | </Shape> |
| 36 | </Transform> |
| 37 | </Transform> |
| 38 | <Shape> |
| 39 | <NurbsCurve DEF='NurbsCurveUnknotted' order='4' tessellation='30' containerField='geometry'> |
| 40 | <Coordinate USE='np' containerField='controlPoint'/> |
| 41 | </NurbsCurve> |
| 42 |
<!-- Appearance
LightBlueAppearance is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='LightBlueAppearance'> |
| 43 | <Material diffuseColor='0.8 0.8 1' emissiveColor='0.8 0.8 1'/> |
| 44 | </Appearance> |
| 45 | </Shape> |
| 46 | <Transform translation='0 7 0'> |
| 47 | <Shape> |
| 48 | <Text string='"NurbsCurve without knots"'/> |
| 49 | <Appearance USE='LightBlueAppearance'/> |
| 50 | </Shape> |
| 51 | </Transform> |
| 52 |
<!-- ROUTE information for ci node:
[from ts.fraction_changed to set_fraction
]
[from value_changed to np.set_point
]
-->
<CoordinateInterpolator DEF='ci' key='0 .5 1' keyValue='4 6 0 7 12 0 11 6 0 15 2 0 20 6 0 4 6 0 7 0 0 11 6 0 15 10 0 20 6 0 4 6 0 7 12 0 11 6 0 15 2 0 20 6 0'/> |
| 53 |
<!-- ROUTE information for ts node:
[from fraction_changed to ci.set_fraction
]
-->
<TimeSensor DEF='ts' cycleInterval='6' loop='true'/> |
| 54 | < ROUTE fromNode='ts' fromField='fraction_changed' toNode='ci' toField='set_fraction'/> |
| 55 | < ROUTE fromNode='ci' fromField='value_changed' toNode='np' toField='set_point'/> |
| 56 | <!-- Authoring hint --> |
| 57 | <Transform DEF='GridXY_20x20Fixed_AdjustScale' translation='12 7 0'> |
| 58 | <Inline DEF='GridXY_20x20Fixed' url=' "GridXY_20x20Fixed.x3d" "../../Savage/Tools/Authoring/GridXY_20x20Fixed.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/GridXY_20x20Fixed.x3d" "GridXY_20x20Fixed.wrl" "../../Savage/Tools/Authoring/GridXY_20x20Fixed.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/GridXY_20x20Fixed.wrl" '/> |
| 59 | </Transform> |
| 60 | </Scene> |
| 61 | </X3D> |
Event Graph ROUTE Table entries with 2 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
|
ts
TimeSensor fraction_changed SFFloat |
ci
CoordinateInterpolator set_fraction SFFloat |
then
|
ci
CoordinateInterpolator value_changed MFVec3f |
np
Coordinate set_point MFVec3f |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->