cutdigital / mcut

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

CSGBoolean tutorial returns an error. #45

Open alimardanov opened 7 months ago

alimardanov commented 7 months ago

Hi! I am trying to run CSGBoolean.cpp tutorial project. I am getting 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 this error. What can Be the cause?

alimardanov commented 7 months ago

It seems that default objects (cube.obj, torus.obj) have faulty descriptions. I used object definitions in HellowWorld.cpp. CSBBoolean.cpp worked fine.

mondoleo commented 6 months ago

@alimardanov I don't know if you are still trying but I am experiencing the same issues and I finally just decided to try an older release and 1.2.0. works.

chitalu commented 1 month ago

Hi,

this is an issue with the mesh loader, which will be fixed.