Can anyone please help me in calculating center of rotation and position of a X3D object? I've noticed that aopt tool by InstantReality adds something like:
<Viewpoint DEF='AOPT_CAM' centerOfRotation='x y z' position='x y z'/>
The result is nice, object is properly zoomed, centrated and center of rotation is somehow perfectly "inside" the object (x,y,z, center). I must avoid using aopt, how can I obtain that, (i.e. via JavaScript) pheraphs looping trough XML Coordinate point and doing some calculations...? I'm using X3DOM to render the object.
Many thanks.