Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Fastest way to tell if a line touches any of a set of faces?
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
I have a whole bunch of curves, and I want to tell if they touch any selected target faces. I first thought of evCollisions(), but I'm not sure it works with faces and curves (does it?). This is making me lean toward evDistance() and seeing if the distance is zero, which should work, but can anyone recommend something that will perform better? I'm looking for a high-performance solution since this operation could happen hundreds of times.
Evan Reese
0
Answers
I know evCollisions() works with curves and curves so I assume it will work with curves and faces. Not sure how high performance this will be.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
I ended up sticking with evDistance() for it, but it's been long enough that I don't remember if I first tried evCollissions() and it was slower, or I just felt it was good enough as-is.
That's fair. I'm noticing that the featurescript has a bit of a gaping whole with this limitation in being able to evaluate interaction between entities. That being said there's enough there for us to be able to make work-around's for now so I'm working with it.