Sets Of Triangles

IndexedTriangleSet • Attributes

An 8-sides blue diamond composed of a set of triangles.

This shape can also be created with an IndexedFaceSet.

 

Rotate the vrignette to view the geometry.

<x3d>

<scene>

<worldInfo title="Sets Of Triangles">
</worldInfo>

<navigationInfo headlight="true">
</navigationInfo>

<viewpoint position="0.0 4.0 12.0" orientation="1 0 0 -0.25" centerOfRotation="0.0 0.0 0.0">
</viewpoint>

<transform rotation="1 0 0 0.196">
<transform rotation="0 1 0 -0.392" translation="0.0 0.0 -0.5">
<shape>
<appearance>
<material diffuseColor="0.300 0.600 0.757" specularColor="0.555 0.555 0.757" shininess="0.15">
</material>
</appearance>
<indexedTriangleSet solid="false" index="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23">
<coordinate point="0.0 2.5 0.0, -1.0 1.25 1.0, 1.0 1.25 1.0, 0.0 2.5 0.0, 1.0 1.25 1.0, 1.0 1.25 -1.0, 0.0 2.5 0.0, 1.0 1.25 -1.0, -1.0 1.25 -1.0, 0.0 2.5 0.0, -1.0 1.25 -1.0, -1.0 1.25 1.0, -1.0 1.25 1.0, 0.0 -1.0 0.0 1.0 1.25 1.0, 1.0 1.25 1.0, 0.0 -1.0 0.0, 1.0 1.25 -1.0, 1.0 1.25 -1.0, 0.0 -1.0 0.0, -1.0 1.25 -1.0, -1.0 1.25 -1.0, 0.0 -1.0 0.0, -1.0 1.25 1.0">
</coordinate>
</indexedTriangleSet>
</shape>
</transform>
</transform>

<background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20">
</background>

</scene>

</x3d>