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.
evRaycast not reporting all face intersections
I'm trying to use evRaycast to get all points where a ray intersects the face of a body. It mostly seems to be working however I have run into a strange issue. A single point is missing from what I would expect to be an intersection. I've included a screenshot where I have circled the "expected point" in black and a link to a document with a simplified version of my script that has the same issue. Anyone have any insight into this? Possible workarounds perhaps? It appears that I can get the point as an EntityType.EDGE intersection. I want to filter by FACE because otherwise I end up with a lot of very close duplicate points in the RaycastResult of EDGE as expected. I would like to avoid filtering in a more computationally intensive way because eventually I will be iterating over thousands of rays.