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

Example 22 : Core dump #21

Closed
csverma610 opened this issue May 11, 2019 · 5 comments
Closed

Example 22 : Core dump #21

csverma610 opened this issue May 11, 2019 · 5 comments
Labels

Comments

@csverma610
Copy link

Hello,

The most important example (remesher) fails:

22_remesher.pro main.cpp main.o Makefile remesher
csverma@blackhole:$ ./remesher ~/Disk/DataSets/Chair.off
new mesh 147428V / 444576E / 296384P
388249 edges longer than 0.0430667 were split.
142714 edges shorter than 0.02584 were collapsed.
250670 edge flip were performed to normalize vertex valence to 6
tangential smoothing
Remesh iteration [10.939885s]
1122279 edges longer than 0.0430667 were split.
231838 edges shorter than 0.02584 were collapsed.
remesher: ../../include/cinolib/meshes/abstract_polygonmesh.cpp:1347: uint cinolib::AbstractPolygonMesh<M, V, E, P>::poly_add(const std::vector<unsigned int, std::allocator >&) [with M = cinolib::Mesh_std_attributes; V = cinolib::Vert_std_attributes; E = cinolib::Edge_std_attributes; P = cinolib::Polygon_std_attributes; uint = unsigned int]: Assertion `poly_id(vlist)==-1' failed.
Aborted (core dumped)

@mlivesu
Copy link
Owner

mlivesu commented May 11, 2019

Can I get a copy of ~/Disk/DataSets/Chair.off?
I'd need it to reproduce the error and debug it

@mlivesu mlivesu added the bug label May 11, 2019
@csverma610
Copy link
Author

csverma610 commented May 13, 2019 via email

@mlivesu
Copy link
Owner

mlivesu commented May 13, 2019

Hi,
the model you tried (bamboo_pen.obj) is a quad mesh. The algorithm implemented in the remesher is expected to receive in input a triangle mesh. From a visual point of view you may immediately notice this when you load the mesh, as only a triangular face for each quad is rendered. This is what is making the algorithm fail.

@csverma610
Copy link
Author

csverma610 commented May 14, 2019 via email

@mlivesu
Copy link
Owner

mlivesu commented May 14, 2019

Not sure what you mean by "freeze the model transformation", but if it's a matter of keeping always the same point of view, you can simply use the cut and paste shortcuts when the focus is on the canvas. This will allow you to copy/paste a camera setting, enabling an easy replication of any point of view whenever you need it

@mlivesu mlivesu closed this as completed Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants