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: 3,082 PRO
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.
0
Answers
-
-
I've actually been doing something with curves and faces and also mate connectors and faces - it's working well. In one test case I checked 300 curves against a spline surface... this evaluates all collisions in 30ms.1
-
ok cool I'll spend more time chasing that one down then. I've not used evCollisions() yet, so I need to learn it.1
-
evCollisions is a big part of a lot of the tools I want to make but it seems to me like it only evaluates faces when given solid bodies. How have you been finding it?0
-
@christopher_dziuba
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.0 -
@Evan_Reese
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.0 -
I realize this is an older thread, but I'm currently using a bunch of rayCasts to find points on a part where I want to simplify some surfaces. I'm using the resultant points to fit planes to. With say 9 parallel ray casts (a central ray surrounded by 8 radially spaced ones), is that faster than something with evCollisions?
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
0




