> > > >Yeah, but I'm running PLIB from CVS and I've now got a nameclash. > > > > Norman replied: > > > #if 0 > > > //code that clashes > > > > > > sgdIsectInfLinePlane() > > > sgdPointInTriangle() > > > > > > #endif //0 > > > > Err, yeah, <sarcasm> I can do that </sarcasm> > > I figured that it would be a good idea to generalize for everybody else, > > and that someone would know exactly what test to use for the decision. > > I don't have time to do this myself, but the real solution here is to > add a configure test for these functions and set the proper define. It > would be a good chance for someone to learn autoconf. It's not that > difficult.
Norman, it looks like your function sgdPointInTriangle() in hitlist.cxx is an improved version of the PLIB SG function of the same name. True? It also appears that hitlist.cxx is the only place sgdPointInTriangle() is called in either SimGear or FlightGear. That being the case, perhaps you could just rename sgdPointInTriangle() for development work in hitlist.cxx, then install it into PLIB with the correct name when your work is complete. This would allow those of us who build with the CVS PLIB to continue to build FGFS without local modifications (and still run your improved code). For example, in order to be able to build with CVS PLIB I renamed sgdPointInTriangle() (and the calls to it) to sgdPointInTriangle_nv() in hitlist.cxx and FGFS builds and runs fine. Regards, Paul Paul R. Deppe Veridian Engineering (formerly Calspan) Flight & Aerospace Research Group 150 North Airport Drive Buffalo, NY 14225 (716) 631-6898 (716) 631-6990 FAX [EMAIL PROTECTED] _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
