cutdigital / mcut

A library for detecting and resolving intersections between two surface meshes.
https://cutdigital.github.io/mcut.site
Other
414 stars 76 forks source link

Assertion failed #38

Closed lvjonok closed 10 months ago

lvjonok commented 11 months ago

Good day!

I have the following error: mcut/source/frontend.cpp, 2932 at 'untraversed_adj_seam_vertex_count <= 1' after running tutorial code QuerySeamVerticesSorted. I am not sure what is going wrong. Files I used are attached below, note that I have changed their extension to upload.

Moreover, this problem occurs with original files too.

cutMesh.txt mesh.txt

chitalu commented 11 months ago

Hi @lvjonok

Thanks. This seems like a bug.

lvjonok commented 10 months ago

Hello!

What do you think of such temporary fix:

// MCUT_ASSERT(untraversed_adj_seam_vertex_count <= 1);
if (untraversed_adj_seam_vertex_count > 1) continue;

Will it work somehow or failing assertion here is a crucial problem?

chitalu commented 10 months ago

Simply commenting out the line does the job. This will be available in the next release.