Skip to main content

GeometryInfo

No replies
ende
Offline
Joined: 2008-10-15
Points: 0

Hi,

I have problem with GeometryInfo. Every time I set IndexedTriangleSet to GeometryInfo and get back after rendered data, number of points increase, but no new points are generated. Some of points are doubled.

e.g.

Point3f[] coords = gi.getCoordinates();

for (int i = 0; i < coords.length; i++)
{
     debug(coords[i]);
}

result is:
[0.0, 0.0, 0.0]
[1.0, 0.0, 0.0]
[0.0, 1.0, 0.0]
[1.0, 1.0, 0.0]
[0.0, 1.0, 0.0]
[0.0, 2.0, 0.0]
[1.0, 2.0, 0.0]
[0.0, 2.0, 0.0]
[-1.0, 1.0, 0.0]
[1.0, 0.0, 0.0]

I am 100 % sure, that I generate properly points and indexes to points. I write it down on paper and draw all points and triangles.

Please could someone tell me what exactly do GeometryInfo and render with this?