Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZhouYixuanRobtic
Copy link
Collaborator

  • Support for a special kind of obj file

  • Fix: small area sampling consuming too much time

  • Fix: invalid access of memory

    I

ZhouYixuanRobtic and others added 3 commits December 10, 2024 22:25
merge the newest version
1. special format of obj file(with only 1 F term)
2. Grid sample under too small area
@@ -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()) {
Copy link
Owner

@mlund mlund Jan 4, 2025

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);
Copy link
Owner

@mlund mlund Jan 4, 2025

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);
Copy link
Owner

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()) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants