-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support for a special kind of obj file (like igl saved). #9
base: master
Are you sure you want to change the base?
Conversation
merge the newest version
@@ -1063,6 +1154,10 @@ bool Voronoi3D::validDeletionSetNew(Array<int> &deletable, Array<bool> &flags, | |||
|
|||
for (int j = 0; j < MAGICK_NUM && ok; j++) { | |||
int u = v->n[j]; | |||
if (u < 0 || u >= vertices.getSize()) { |
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.
I think there's an indentation issue here. Would you mind running clang-format
on the changes?
@@ -1225,11 +1324,19 @@ bool Voronoi3D::getCloserForming(int *newForming, float *newDistance, | |||
for (int i = 0; i < numVerts; i++) { | |||
// get vertex | |||
int vI = form->vertices.index(i); |
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.
rename vI
-> vertex_ndx
?
@@ -667,8 +717,16 @@ void Voronoi3D::remap(Array<int> &list, int oldV, int newV, int sI) const { | |||
} | |||
|
|||
void Voronoi3D::deleteVertex(int dI, Array<int> &deletable) { | |||
if (dI < 0 || dI >= deletable.getSize()) { | |||
OUTPUTINFO("Invalid deletable index in deleteVertex: %d \n", dI); |
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.
remove trailing white-space
@@ -364,6 +367,10 @@ bool Voronoi3D::validNewVertices(const Array<int> &deletable, | |||
|
|||
for (int j = 0; j < MAGICK_NUM; j++) { | |||
int u = v->n[j]; | |||
if (u < 0 || u >= vertices.getSize()) { |
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.
indentation?
Support for a special kind of obj file
Fix: small area sampling consuming too much time
Fix: invalid access of memory
I