We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,If I know two points on the model surface, can I use those two points to find the intersection with the model boundary?
We can use the following as input: mesh, upper surface, two point coordinates. Desired result: Find the intersection with the left boundary
The text was updated successfully, but these errors were encountered:
Hello!
It is not determined how to prolong ab edge by the surface. I can reccomend defining a plane using surface normal and ab edge.
ab
MeshEdgePoint a,b; // input data Mesh mesh; // input mesh UndirectedEdgeBitSet selectedEdges; // input edges to find intersections on //define plane auto plane = Plane3f::fromDirAndPt( cross( mesh.edgePoint(b) - mesh.edgePoint(a), mesh.normal( MeshTriPoint(a) ) ), mesh.edgePoint(a) ); // find intersections std::vector<MeshEdgePoint> intersections; for ( auto ue : selectedEdges ) { float orgD = plane.distance( mesh.orgPt( EdgeId( ue ) ) ); float destD = plane.distance( mesh.destPt( EdgeId( ue ) ) ); if ( orgD * destD > 0.0f ) // same sign - no intersection continue; intersections.push_back( MeshEdgePoint( EdgeId( ue ), std::abs(orgD)/(std::abs(orgD)+std::abs(destD)) ) ); }
Sorry, something went wrong.
Thanks a lot.
Grantim
No branches or pull requests
Hello,If I know two points on the model surface, can I use those two points to find the intersection with the model boundary?
We can use the following as input: mesh, upper surface, two point coordinates.
Desired result: Find the intersection with the left boundary
The text was updated successfully, but these errors were encountered: