Op Di, 12 augustus, 2008 01:11, schreef J.B.C.Engelen@...1578...:
Often it is not needed to add to_2geom/from_2geom, so please don't! The conversion goes automatically between NR::Point <=> Geom::Point and NR::Matrix <=> Geom::Matrix. Only ambiguities need a little more guideance: void some_function(NR::Point nr) Geom::Point geom; Geom::Point ambiguous = nr - geom;
What about methods that require parameters by reference for getting data both in and out? Will the implicit casting work correctly for those too? Maybe I should just try that myself; there are quite some snapping calls requiring Geom::Point& (without being const). It would be great if I could just pass a NR::Point. So far I've used dummy variables for that.
It's quite cumbersome indeed to transfer everything to 2geom. Last weekend I had a shot at the snapping code, but I have caused some regressions which need to be fixed first.
I guess Johan could still use some additional hands.
Regards,
Diederik