Circles Within Circles
Node
Disk2D • Attributes
Description
A group of colored Disk2D shapes with differing inner radius values.
VRIGNETTE Notes
OuterRadius value must be greater than zero. InnerRadius must be greater than or equal to zero and less than or equal to outerRadius.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <!-- World Info --> <worldInfo title="X3D Disk2D Example"> </worldInfo> <!-- Navigation Info --> <navigationInfo headlight="true"> </navigationInfo> <!-- Avatar Viewpoint --> <viewpoint position="0.0 0.0 35.0"> </viewpoint> <!-- Shapes --> <shape> <appearance> <material diffuseColor="0.220 0.271 0.310"> </material> </appearance> <disk2d innerRadius="2.5" outerRadius="3.5" solid="false"> </disk2d> </shape> <transform translation="-7.5 -1.0 0.0"> <shape> <appearance> <material diffuseColor="0.0 0.588 0.902"> </material> </appearance> <disk2d innerRadius="3.0" outerRadius="3.5" solid="false"> </disk2d> </shape> </transform> <transform translation="7.5 1.0 0.0"> <shape> <appearance> <material diffuseColor="0.898 0.298 0.235"> </material> </appearance> <disk2d innerRadius="3.25" outerRadius="3.5" solid="false"> </disk2d> </shape> </transform> <transform translation="0.5 8.5 0.0"> <shape> <appearance> <material diffuseColor="0.949 0.835 0.357"> </material> </appearance> <disk2d innerRadius="1.25" outerRadius="3.5" solid="false"> </disk2d> </shape> </transform> <transform translation="-1.75 -8.5 0.0"> <shape> <appearance> <material diffuseColor="0.141 0.682 0.373"> </material> </appearance> <disk2d innerRadius="0.0" outerRadius="3.5" solid="false"> </disk2d> </shape> </transform> <!-- Scene Background --> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>