Previous: Kugel.x3d
Up: X3D Document Type Definition
Next: cgp2000.x3d
Beispiel zur Erstellung einer Pyramide
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3DScene SYSTEM "X3D.dtd">
<X3DScene>
<Group>
<Shape DEF="pyramide">
<IndexedFaceSet>
<CoordinateVector>
<Point x="0" y="3" z="0"/>
<Point x="0" y="0" z="-2"/>
<Point x="-2" y="0" z="0"/>
<Point x="0" y="0" z="2"/>
<Point x="2" y="0" z="0"/>
</CoordinateVector>
<CoordIndex>
<Polyline> 4 3 2 1 </Polyline>
<Polyline> 0 1 2 </Polyline>
<Polyline> 0 2 3 </Polyline>
<Polyline> 0 3 4 </Polyline>
<Polyline> 0 4 1 </Polyline>
</CoordIndex>
<ColorVector>
<Color r="0" g="255" b="255"/>
<Color r="255" g="0" b="0"/>
<Color r="255" g="255" b="0"/>
<Color r="0" g="255" b="0"/>
<Color r="0" g="0" b="255"/>
</ColorVector>
</IndexedFaceSet>
</Shape>
</Group>
<Group>
<Rotation x="2" y="3" z="0" rad="23"/>
<Shape USE="pyramide"/>
</Group>
</X3DScene>
Previous: Kugel.x3d
Up: X3D Document Type Definition
Next: cgp2000.x3d