About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sAIHit->HitTest counterpart
07-23-2016, 02:03 PM
Post: #1
sAIHit->HitTest counterpart
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.
Find all posts by this user
Quote this message in a reply
07-23-2016, 11:00 PM
Post: #2
RE: sAIHit->HitTest counterpart
See the hdi::core::HitData class.
Find all posts by this user
Quote this message in a reply
07-24-2016, 10:10 AM
Post: #3
RE: sAIHit->HitTest counterpart
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.
Find all posts by this user
Quote this message in a reply
07-24-2016, 11:47 AM
Post: #4
RE: sAIHit->HitTest counterpart
(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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)