Skip to content

Add dense_longlong to all integer dtype parameters#15

Merged
KarlLeell merged 11 commits intolibigl:masterfrom
KarlLeell:master
Aug 8, 2019
Merged

Add dense_longlong to all integer dtype parameters#15
KarlLeell merged 11 commits intolibigl:masterfrom
KarlLeell:master

Conversation

@KarlLeell
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@fwilliams fwilliams left a comment

Choose a reason for hiding this comment

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

There are a lot of commented out checks. Are these causing tests to fail? I added some other notes here and there.


npe_begin_code()

//assert_valid_3d_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are some tests commented out, basically because they are either from the unmerged PR, like assert_valid_tet_or_tri_mesh_faces, or they are not implemented yet, just I think they should be there so I put it, like assert_valid_3d_tri_mesh_faces.

npe_arg(f, dense_int, dense_long, dense_longlong)
npe_begin_code()

//assert_valid_tet_or_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this commented out?


npe_begin_code()

//assert_valid_tet_or_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this commented_out?

//assert_cols_equals(vs, 1, "vs");
//assert_cols_equals(fs, 1, "fs");
//assert_cols_equals(vt, 1, "vt");
//assert_cols_equals(ft, 1, "ft");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these commented out?

Also, I'm not sure if these will always have shape (N, 1). They might have shape (1, N). It might make sense to have something like assert_is_vector(vs, "vs") which checks both conditions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True, these ones I'm not sure (I'm not even sure if they can be omitted), so I added them but comment them out.

#include <igl/harmonic.h>

//TODO: is is only dense_int because min_quad_with_fixed_data hardcodes int, fixme
//TODO: is is only dense_int because min_quad_with_fixed_data hardcodes int, FIXME
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this comment still true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems min_quad_with_fixed has been templated now, I will try to fix this later

npe_begin_code()
assert_valid_3d_tri_mesh(v, f);

assert_valid_tet_or_tri_mesh(v, f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

also tet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is by simplex

Copy link
Collaborator

Choose a reason for hiding this comment

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

you are indeed correct

npe_arg(f, dense_int, dense_long, dense_longlong)
npe_begin_code()

//assert_valid_tet_or_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

why commented?

npe_arg(t, dense_int, dense_long, dense_longlong)
npe_begin_code()

// TODO: need an option for multiple shapes
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you elaborate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here t can be either #t by 3 or #t by 4, and currently I think we cannot check this

Copy link
Collaborator

Choose a reason for hiding this comment

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

assert_valid_tet_or_tri_mesh_faces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh right

npe_arg(f, dense_int, dense_long, dense_longlong)
npe_begin_code()

//assert_valid_tet_or_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

why?


npe_begin_code()

assert_valid_tet_or_tri_mesh(v, f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

if it is by 3 it is tri_mesh3d not tets


npe_begin_code()

assert_valid_tet_or_tri_mesh(v, f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think only tri

npe_arg(f, dense_int, dense_long)
npe_arg(f, dense_int, dense_long, dense_longlong)
npe_begin_code()
//assert_valid_3d_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing


npe_begin_code()

assert_valid_tet_or_tri_mesh(v, f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

tri


npe_begin_code()

//assert_valid_tet_or_tri_mesh_faces(f, "f");
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

npe_arg(f, dense_int, dense_long)

npe_begin_code()
assert_valid_tet_or_tri_mesh(v, f);
Copy link
Collaborator

Choose a reason for hiding this comment

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

correct but misleading :D

@KarlLeell KarlLeell merged commit 1e76609 into libigl:master Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants