Hi Geoff, Have a look at the osgintersection example for the range of utils for doing intersections.
Robert. On Fri, Oct 10, 2008 at 2:55 PM, Geoff <[EMAIL PROTECTED]> wrote: > Ok, how would I do the geometry queries without it? The only reason I > am using the Viewer is because I was given this project that does what > I need, just on the commandline for a single X,Y, whereas I need to do > it for a bunch of X,Y's in the same database. > > Basically, for my project, I need to create a DLL that loads a > specified OpenFlight database file, then allows me to query ZValues > based on given X,Y coordinates repeatedly. I have the DLL outline > created, and am now just working on moving the code from the > commandline project over into it. If there is a better way to go about > getting the information out of it, I am all ears and eager to learn. > > Thanks for all the help so far. I am trying to read all the messages I > can, and wish I had figured out this message list sooner. > > Geoff > > On Fri, Oct 10, 2008 at 9:47 AM, Robert Osfield > <[EMAIL PROTECTED]> wrote: >> Hi Geoff, >> >> osgViewer::Viewer has a default constructor and will work just fine >> without the command line arguments. In fact most of the OSG examples >> don't use ArgumentParser at all. So just remove the ArgumentParser >> bits and you'll get on just fine. >> >> If all your need to do is geometry queries then you don't even need a >> Viewer at all, you only use the Viewer if you actually need one. >> >> Robert. >> >> On Fri, Oct 10, 2008 at 1:43 PM, Geoff <[EMAIL PROTECTED]> wrote: >>> Ok, forgive me if this is a basic question, as I am just starting out with >>> OSG. >>> >>> I have a project that I was given that runs via the commandline, >>> creates a osgViewer::Viewer based on the arguments passed via the >>> command line and then retrieves all Z values at a given x,y location. >>> Right now I have an osg::ArgumentParser that handles the incoming >>> arguments, but then that gets passed to the viewer. >>> >>> What I am looking to do is remove the commandline arguments as I am >>> trying to make this project into a DLL library to use with another >>> application. Is there a way to create the viewer without passing in >>> the osg::ArgumentParser object, and if so, could someone point me to >>> the documentation on it, or an example? >>> >>> Thanks again. >>> >>> Geoff >>> _______________________________________________ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org