-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add a way to pass input normal to faces #8638
base: master
Are you sure you want to change the base?
Conversation
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.
The ! in Plane_face_region.h#320 looks like bug and at least the doc needs to be updated.
h=next(h, m_face_graph); | ||
r=get(m_vpm,target(h, m_face_graph)); | ||
} | ||
while(!collinear(p,q,r)); |
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.
while(!collinear(p,q,r)); | |
while(collinear(p,q,r)); |
to chunks of faces in a polygon mesh and controls the quality of this fit. | ||
If all quality conditions are satisfied, the chunk is accepted as a valid region, | ||
otherwise rejected. | ||
|
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.
Doc needs to be updated. The region is based on the support plane of the seed face.
const Item query, | ||
const Region&) const | ||
{ | ||
//TODO: that's a bit dummy that we retest points that are already in the region... |
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.
If performance is an issue, we can add a flag that is set when the region needs to be rechecked. But this region type should be pretty fast already as there is no refitting.
const typename GeomTraits::Point_3& p=get(m_vpm,source(h, m_face_graph)); | ||
const typename GeomTraits::Point_3& q=get(m_vpm,target(h, m_face_graph)); | ||
typename GeomTraits::Point_3 r; | ||
//TODO: add safety checks for degenerate faces |
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.
The safety check should be inside the update method that should return false for degenerate faces.
Avoid computing them when they are known.
sort()
for exemple). PCA is also used here to estimate the flatness score of a face in its neighborhood