Hot Door CORE Forum

Full Version: sAIHit->HitTest counterpart
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to request a counterpart to the SDK's HitTest, where one can optionally provide an art object at which to begin searching for art under a specified point independent of a mouse or cursor event. Or better yet, since there's already an artAtPoint function in CurrentDocument, it would be very helpful to be able to check each path returned for the segment number and T value of the hit responsible for its inclusion in the returned ArtVector.
See the hdi::core::HitData class.
Thanks, Garrett. I was sure I'd read a while back of a hit function that searched below a given point, but when I needed it I somehow missed it, mistaking HitData for a simple container that was returned from other built-in functions. It's just what I need!

To help do better searches in the future, I added a Search Scope in Xcode that includes just the CORE headers. That way I see every instance along with a bit of context, which is fast and thorough. I hope that's helpful to others, as well.
(07-24-2016, 10:10 AM)Rick Johnson Wrote: [ -> ]To help do better searches in the future, I added a Search Scope in Xcode that includes just the CORE headers. That way I see every instance along with a bit of context, which is fast and thorough. I hope that's helpful to others, as well.

This is what we do as well. Xcode makes it super easy.