When one starts thinking about using SIMD extensions, lower precision sin/cos 
calculations you have to encapsulate the math stuff anyway... so, I like the 
idea of an osg Math library. :-)

Richard


HI Mathias,

osg/Math is mainly about trying to make the maths functions a bit more
uniform across platforms, where things like cosf arn't available then
are adapted from cos etc, these sit in the global namespace as this is
where they wouldn't be if they had been already defined.  Putting such
functions in the osg namespace would break lots of code on the OSG
side, as they assume that the various functions are in the global
namespace, and would then require adapters to put cosf into osg::cosf
where cosf is already defined.  All in all a recipe  of making things
more convoluted than they already are.

What functions are you having problem with?  Does the OSG itself
build?  Would including an appropriate Solaris header allow us to
refactor osg/Math a little by removing the definitions where not
needed under Solaris?

Robert.

On 3/26/07, Mathias Froehlich <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We have some problems with the osg/Math header on solaris.
> Depending on the order of inclusion we have a redefinition of some libm
> functions in math.h or sunmath.h that are already defined in osg/Math.
>
> Given that this is an osg header I would suggest that those functions are put
> in the osg namespace instead of the global namespace.
>
> If we can do so, I would provide a patch for that.
> Opinions?
>
>    Greetings
>
>            Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to