[osg-users] intersect() methods in LineSegment (probably others)
Adrian Egli OpenSceneGraph (3D)
3dhelp at gmail.com
Wed Feb 6 07:13:50 PST 2008
Hi Andy,
If we are using drive manipulator, then we are testing many time with many
objects against a line.
/adegli
2008/2/6, Andy Skinner <Andy.Skinner at mathworks.com>:
>
> In your work, could you give me an idea of how often you intersect with a
> particular line segment object? I'm trying to decide if it is worth it to
> keep a Vec3d in the class (marking whether it is valid), or keeping double
> versions of _s and _e.
>
> thanks,
>
> andy
>
> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces at lists.openscenegraph.org] On Behalf Of Jean-Sébastien
> Guay
> Sent: Wednesday, February 06, 2008 9:52 AM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] intersect() methods in LineSegment (probably
> others)
>
> Hello Andy,
>
> > So is anyone counting on this being floats for performance? Would
> > anyone else welcome this calculation in doubles?
>
> If you submit a patch, I can test it out in my Masters project which
> uses LineSegmentIntersector pretty heavily (not-quite-realtime
> raytracing :-) ) so that will tell us if there is really a performance
> difference. Off hand I can't really say, so I'd prefer to do some
> benchmarking.
>
> > I don't mind adding
> > some code in our own source if other people don't want this in doubles,
> > but I'd have to make my own IntersectVisitor as well as my own
> > LineSegment, when all I really want to replace is the LineSegment.
> > Having an almost-but-not-quite copy of a class and having to watch the
> > original for updates doesn't sound like any fun.
> >
>
> I totally understand... It'll be a matter of the performance vs
> correctness tradeoff I guess, so as I said I can provide some answer to
> the performance side of that question and see what Robert thinks when he
> comes back.
>
> So please, submit your changes and we'll see.
>
> Thanks,
>
> J-S
>
> --
> ______________________________________________________
> Jean-Sebastien Guay jean-sebastien.guay at cm-labs.com
> http://www.cm-labs.com/
> http://whitestar02.webhop.org/
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080206/05957535/attachment.htm
More information about the osg-users
mailing list