Open autosquid opened 8 years ago
I further checked, and find mVertexChainCounter
in generatePolygons
exceeds 5000, causing an early false return with ss=0
.
OK , I am testing the code on OS X , the issue is replicated on my system. I will get back to you on this.
I tested the code on Visual studio 2013 on windows , where it worked fine. Just for testing purposes , as POC , you can run it with msvc , where it would produce the output.
ok , I made few changes in buildVisualHull method . Now it is currently producing output. It contains several holes though. I will check it later for possible issues. But for now I think , the core runs till the end and displays the output. Please let me know if you still face problems.
Yeah, it is generating output. Here is what I got on my mac:
The mesh seems broken. some faces are degenerated. Is it the same with you?
What is more, the vertex number of the mesh is 0 here, with number of cells 21444 (after triangulation).
Yeah , I got the same output. Don't be alarmed with number of vertices , vtk treats points and vertices differently , I should have printed GetNumberOfPoints() instead of GetNumberOfVerts(). I will work on the mesh issue , when I get some time. Meanwhile if you can find any bug at any stage , do notify. I would be happy to explain anything in the code.
After a few minor fixes, the demo works on my mac. I checked the polyhedra calculated with the provided dataset, but it seems the polyhedra is empty, i.e. with 0 vertices.
The following is the output from demo:
When I check the polygons with
GetNumberOfVerts
, the result is 0.And the vtk window does not appear in my case, which I think is related to my vtk library configuration.