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

Assertion failed when trying to compile the TriangulatedFaceMaps.cpp tutorial #43

Open
gk1705 opened this issue Mar 15, 2024 · 1 comment

Comments

@gk1705
Copy link

gk1705 commented Mar 15, 2024

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.

@alimardanov
Copy link

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?

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

No branches or pull requests

2 participants