Hot Door CORE Forum
sAIHit->HitTest counterpart - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Feature requests (http://hotdoorcore.com/forum/forumdisplay.php?fid=7)
+--- Thread: sAIHit->HitTest counterpart (/showthread.php?tid=87)



sAIHit->HitTest counterpart - Rick Johnson - 07-23-2016

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.


RE: sAIHit->HitTest counterpart - garrett - 07-23-2016

See the hdi::core::HitData class.


RE: sAIHit->HitTest counterpart - Rick Johnson - 07-24-2016

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.


RE: sAIHit->HitTest counterpart - garrett - 07-24-2016

(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.