]> git.tdb.fi Git - libs/math.git/commit
Make CompositeShape::get_intersections work with null points
authorMikko Rasa <tdb@tdb.fi>
Wed, 22 May 2013 20:03:07 +0000 (23:03 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 22 May 2013 20:03:07 +0000 (23:03 +0300)
commit39626a640e3b6a1ff8894e0cf47db68540d669b2
tree9d276a69009acdf07553a6ea9f51316ceb32da36
parent5e5a34537e5f2efc71181f2bf6878c3e2e62b398
Make CompositeShape::get_intersections work with null points

This was a bit tricky, since it's necessary to inspect the points returned
by component shapes to see if they're actually on the composite surface.
To that end, a temporary buffer is allocated.  This is most likely used in
interactive point-and-pick situations, so the performance loss should not
be significant.
source/geometry/compositeshape.h