Hi,
Can someone please explain to me how the <triangles> tag in the <library_geometries> is used?
Actually, I am using Google Sketchup to draw a model which has just a single triangle. However, the Google Earth 4.0 format for the model has following CDA file (only relevant part) :
<library_geometries>
<geometry id="mesh1-geometry" name="mesh1-geometry">
<mesh>
<source id="mesh1-geometry-position">
<float_array id="mesh1-geometry-position-array" count="9">10000.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1000.000000 0.000000 </float_array>
<technique_common>
<accessor source="#mesh1-geometry-position-array" count="3" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="mesh1-geometry-normal">
<float_array id="mesh1-geometry-normal-array" count="3">0.000000 0.000000 -1.000000 </float_array>
<technique_common>
<accessor source="#mesh1-geometry-normal-array" count="1" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="mesh1-geometry-uv">
<float_array id="mesh1-geometry-uv-array" count="6">-3937.007874 0.000000 0.000000 0.000000 0.000000 393.700787 </float_array>
<technique_common>
<accessor source="#mesh1-geometry-uv-array" count="3" stride="2">
<param name="S" type="float"/>
<param name="T" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="mesh1-geometry-vertex">
<input semantic="POSITION" source="#mesh1-geometry-position"/>
</vertices>
<triangles material="FrontColorNoCulling" count="1">
<input semantic="VERTEX" source="#mesh1-geometry-vertex" offset="0"/>
<input semantic="NORMAL" source="#mesh1-geometry-normal" offset="1"/>
<input semantic="TEXCOORD" source="#mesh1-geometry-uv" offset="2" set="0"/>
0 0 0 1 0 1 2 0 2 </p>
</triangles>
</mesh>
</geometry>
</library_geometries>
Thanks a lot in advance.