Circling Around
Node
Circle2D • Attributes
Description
A group of colored Circle2D shapes with differing radius and line property values.
VRIGNETTE Notes
If you want a circle you can fill in, use Disk2d
Example
Rotate the vrignette to view the geometry.
Code
<?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='Immersive' 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='title' content='Circle 2D'/> <meta name='description' content='A Circle2D Example'/> <meta name='creator' content='Ian Hollidae'/> <meta name='created' content='May 16, 2024'/> </head> <Scene> <WorldInfo title='Circle2D'> </WorldInfo> <Viewpoint position="0.0 0.0 25.0" centerOfRotation="0.0 0.0 0.0"> </Viewpoint> <NavigationInfo type="ANY"> </NavigationInfo> <!-- Rings --> <Shape> <Circle2D solid="true" radius="3.0"> </Circle2D> <Appearance> <Material emissiveColor='0.220 0.271 0.310'> </Material> <LineProperties linewidthScaleFactor="5.0"> </LineProperties> </Appearance> </Shape> <Transform translation="-6.5 0.0 0.0"> <Shape> <Circle2D solid="true" radius="2.0"> </Circle2D> <Appearance> <Material emissiveColor='0.0 0.588 0.902'> </Material> <LineProperties linewidthScaleFactor="2.5"> </LineProperties> </Appearance> </Shape> </Transform> <Transform translation="6.5 3.0 0.0"> <Shape> <Circle2D solid="true" radius="2.0"> </Circle2D> <Appearance> <Material emissiveColor='0.898 0.298 0.235'> </Material> <LineProperties linewidthScaleFactor="2.5"> </LineProperties> </Appearance> </Shape> </Transform> <Transform translation="0.5 -6.5 0.0"> <Shape> <Circle2D solid="true" radius="1.0"> </Circle2D> <Appearance> <Material emissiveColor='0.949 0.835 0.357'> </Material> <LineProperties linewidthScaleFactor="2.0"> </LineProperties> </Appearance> </Shape> </Transform> <!-- Background --> <Background skyColor="0.20 0.20 0.20"> </Background> </Scene> </X3D>