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.
Intersection between Edge and Plane
martin_laabs
Member Posts: 6 ✭✭
Hi,
is there is a way to get the intersection between a plane and an edge? Intersection between line and plane can be realized with intersection(...) function but I need the intersection between a plane and an edge.
Converting the edge to a line (with evEdgeTangentLine) won't work either since the line has an infinite length but I have to know whether there is an intersection within the finite edge length.
Constructing a huge face on the plane and intersect with that would work sometimes - but it will fail for very small angles between plane/long edge since the face is finite in its dimension.
Thank you,
Martin
is there is a way to get the intersection between a plane and an edge? Intersection between line and plane can be realized with intersection(...) function but I need the intersection between a plane and an edge.
Converting the edge to a line (with evEdgeTangentLine) won't work either since the line has an infinite length but I have to know whether there is an intersection within the finite edge length.
Constructing a huge face on the plane and intersect with that would work sometimes - but it will fail for very small angles between plane/long edge since the face is finite in its dimension.
Thank you,
Martin
Tagged:
1
Comments
Let us know if you need a more detailed explanation or have any further questions!
thank you for your fast reply. Unfortunately evDistance does not work with planes. From the docs:
side0: One of the following: A query, or a point (3D Length Vector), or a
Line
, or an array of points, or an array ofLine
s.I also tried to call evDistance with something like
... "side0": plane(vector(0,0,0) * meter, vector(1,0,0)) ...
Of cause not with hardcoded vectors but some vectors calculated previously. But the documentation is right - this call fails. There is a workaround by creating a plane with opPlane, use that object in evDistance with the extendSide0/extendSide1 argument and delete the object afterwards. But this is ugly. Maybe someone could add a plane support in evDistance.
Thank you,
Martin
unfortunately intersection won't do the job. At least not without further processing to check whether the point is part of the edge or not. But I think I will continue with the workaround described above.
Best regards,
Martin