Hi Patrice,

On 7 September 2012 16:01, Patrice Gonzalez <[email protected]>wrote:

> ok thank you for the answer. However, is there a simple way to compile
> OpenSceneGraph with double values instead of float?
>

By default the OSG chooses double over float in places where it's
configurable such as for the default Matrix and Plane classes as these are
all critical for handling models with large model scales.  The
DelaunayTriangulator is configurable right now though.  One could add
support for it work in doubles internally but this won't solve all the
precision problems though, the right way to solve it is the use robust
predicate maths for the incircle and orientation test rather than rely on
fix precision maths.  To read up on this have a look at:

http://www.cs.cmu.edu/~quake/robust.html

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to