<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Interchange'  version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd ' >
<head>
<meta name='titlecontent=' TransformCenterOffsetForRotation.x3d '/>
<meta name='descriptioncontent='Use Transform center field to compare original Cylinder (left) to rotation about middle of object (middle Cylinder) to rotation about bottom of object (right Cylinder).'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='28 January 2008'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent=' https://X3dGraphics.com '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright Don Brutzman and Leonard Daly 2007'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/TransformCenterOffsetForRotation.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Index for DEF nodes: FlatBox, TallCylinder
-->
<Scene>
<!-- leftmost cylinder is vertical -->
<WorldInfo title='TransformCenterOffsetForRotation.x3d'/>
<Transform translation='-3.5 0 0'>
<Shape DEF='TallCylinder'>
<Cylinder height='4'/>
<Appearance>
<Material diffuseColor='0.941176 0.027451 0'/>
</Appearance>
</Shape>
</Transform>
<!-- center cylinder rotated -45 degrees about center -->
<Transform rotation='0 0 1 -0.78'>
<Shape USE=' TallCylinder'/>
</Transform>
<!-- rightmost cylinder rotated -45 degrees about base -->
<Transform center='0 -2 0rotation='0 0 1 -0.78translation='3.5 0 0'>
<Shape USE=' TallCylinder'/>
</Transform>
<Shape DEF='FlatBox'>
<Box size='7 0.1 2'/>
<Appearance>
<Material diffuseColor='0 0.643137 0.960784'/>
</Appearance>
</Shape>
<Transform translation='0 -2 0'>
<Shape USE=' FlatBox'/>
</Transform>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF nodes: FlatBox, TallCylinder
-->
-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/TransformCenterOffsetForRotationIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/TransformCenterOffsetForRotation.x3d -->

<!-- Color 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->