HI Muhammad and all,

If have a similar problem. It seems that some tools that generate vrml files 
save the vertex data with respect not to the local coordinate system of a 
Geometry but with respect to the world coordinate system.

I guess one needs to somehow compute the "center of mass" or local geometric 
center of the vertices and then change the vertices such that they are stored 
with respect to that local center and additionally store the offset "world to 
local center" in the preceding Component Transformation.

Is there a function to calculate the center of mass or the center of an array 
of Vertices? I guess one has to consider in the indices somehow in that 
algorith, too.

Cheers,

Georg Wünsch
BEGIN:VCARD
VERSION:2.1
N:Wünsch;Georg;;Dipl.-Ing.
FN:Georg Wünsch ([EMAIL PROTECTED])
TEL;WORK;VOICE:+49 8928915542
TEL;CELL;VOICE:+49 1632027761
ADR;WORK:;;Boltzmannstrasse 15;Garching;;85748;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Boltzmannstrasse 15=0D=0AGarching 85748=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20071130T103545Z
END:VCARD
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to