-
Notifications
You must be signed in to change notification settings - Fork 1
Gsoc2019 pmph dist martinskrodzki #1
New issue
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
base: master
Are you sure you want to change the base?
Conversation
…ssing loop into previous loop.
…second triangle mesh.
…d solution is: Hausdorff distance will be attained at Point (0,0,1) and should be sqrt(3).
| Point_3 v1 = query.vertex(1); | ||
| Point_3 v2 = query.vertex(2); | ||
| // Compute the barycenter of the triangle | ||
| Point_3 tri_center = Point_3( 0.3*(v0.x()+v1.x()+v2.x()), 0.3*(v0.y()+v1.y()+v2.y()), 0.3*(v0.z()+v1.z()+v2.z()) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will use CGAL::barycenter for this.
|
|
||
| // Determine whether child nodes will still contribute to a larger | ||
| // Hausdorff distance and thus have to be entered | ||
| bool do_intersect(const Query& query, const Node& node) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
query is not used, this is surprising
| // Compute the distance of the center to the closest point in tm2 | ||
| double dist = approximate_sqrt(squared_distance(center, closest)); | ||
| // Compute the radius of the circumsphere of the bounding boxes | ||
| double radius = approximate_sqrt(squared_distance( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you investigate using the distance to bbox?
…s where a triangle is never projected onto a single triangle in the other mesh.
…make print outs optional via a debug parameter.
Please use the following template to help us managing pull requests.
Summary of Changes
Pull request for review of GSoC code for the first evaluation period. A first implementation of the bounded Hausdorff algorithm was done, it has quite some opportunities to enhance its speed, but it works.
Release Management