Skip to content

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

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?

int numVerts = form->vertices.getSize();
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?


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


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