Hi Robert,

I'm not aware of compilers having such problems. I guess it should be okay, but 
I'm not a cross-compiler wizard ;)

About my problem, well I:
1. Use osgModeling to generate normals from double-precision vertices (modified 
version of osgModeling. Pending, because I wait for this submission to be 
accepeted)
2. Have some custom code using TriangleFunctor to apply on double-precision 
vertices.
I may have problems using LineSegmentIntersector later, but not at the moment.

I often have problems handling both simple and double precision vertices and/or 
vertices arrays... Maybe there is something we can do at a very low level? Some 
wrappers to read "Vec[234]d?Array"?

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Robert Osfield" <[email protected]> a écrit :

> HI Sukender,
> 
> I'm just reviewing your changes and mostly understand what the idea
> behind them is, but the templated methods make me a little nervous
> about some of the less capable compilers being able to handle the
> code.  I recall problems under Solaris/SunOS in the past due to some
> oddities in the compiler/STL implementation about templated methods.
> I don't know if this issue has gone way or not - I don't have any
> system to test against.
> 
> Reviewing this submission also makes me wonder if there might be a
> better route to solving the issue of handling Vec3 and Vec3d vertex
> arrays.
> 
> What is the current usage model you have in mind that you wish to
> solve?  If we can come up with a couple of clear usage/tests for the
> functionality then we will in a better place to decide how to tackle
> it.  Off the top of my head I'm wondering about
> osgUtil::LineSegmentIntersector and making it support Vec3dArray's.
> Is this the type of problem you hand in mind?
> 
> Robert.
> 
> On Mon, Apr 12, 2010 at 1:12 PM, Sukender <[email protected]> wrote:
> > Now with the file... :)
> >
> > Sukender
> > PVLE - Lightweight cross-platform game engine -
> http://pvle.sourceforge.net/
> >
> > ----- "Sukender" <[email protected]> a écrit :
> >
> >> Hi Robert,
> >>
> >> Here is a slightly modified version of osg::TriangleFunctor, which
> now
> >> accepts Vec3 OR Vec3d.
> >> This modification is intended to be used in osgModeling (very)
> soon.
> >>
> >> Is this an acceptable change?
> >>
> >> Cheers,
> >>
> >> Sukender
> >> PVLE - Lightweight cross-platform game engine -
> >> http://pvle.sourceforge.net/
> >> _______________________________________________
> >> osg-submissions mailing list
> >> [email protected]
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
> >
> > _______________________________________________
> > osg-submissions mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
> >
> >
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to