mcut icon indicating copy to clipboard operation
mcut copied to clipboard

Assertion failed when trying to compile the TriangulatedFaceMaps.cpp tutorial

Open gk1705 opened this issue 1 year ago • 1 comments

In the 3rd iteration over the connected components the line at 307:

status = mcGetConnectedComponentData(context, cc, MC_CONNECTED_COMPONENT_DATA_FACE_TRIANGULATION, 0, NULL, &numBytes);

causes an exception in source/frontend.cpp at line 3414 and subsequently 3418 with the following message: 'internal_inputmesh_face_idx < cc_face_count'

I used the 'cube.obj' and 'plane.obj' from the VertexNormals.cpp tutorial. I commented out the asserts and it does seem to be a bandaid fix.

Thank you for acknowledging my message.

gk1705 avatar Mar 15 '24 13:03 gk1705

Hi! I am also doing tutorials. But runing CSGBoolean.cpp tutorial project retruns the below error:

==== Error ======= NOTE: using default meshes read .obj file: D:/mcut/tutorials/CSGBoolean/data/cube.obj 14 positions 0 normals 0 texture-coords 10 face(s) 44 face indices error: have 5 vertices when there should be =4

============

I tried changing cube.obj file. But still getting the same error.

Did you also have this problem? How did you solve?

alimardanov avatar Apr 22 '24 04:04 alimardanov