rendergather / carve

Automatically exported from code.google.com/p/carve
Other
0 stars 0 forks source link

error of vertex indices of a face after union operation #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've found that after the union calculation, the indices of vertices on a 
same face may be repeated, for example if I output the result into an obj file, 
an line with error is:

f 204 194 5 40 75 111 5 194 220

There are two index "5" vertices as well as "194" vertices. How could this 
happen? How to fix the bug please?
Thanks!

Original issue reported on code.google.com by wangk0...@gmail.com on 3 Nov 2011 at 1:23

GoogleCodeExporter commented 9 years ago
just one more word, why don't you just make the polyhedra triangular meshes 
instead of polygonal meshes, such that this kind of error can be avoided.

Original comment by wangk0...@gmail.com on 3 Nov 2011 at 2:16

GoogleCodeExporter commented 9 years ago
This is a way of representing a hole in a polygon. This can still arise if the 
input meshes are triangular. However, triangulating the output mesh will remove 
holes such as this.

Original comment by tobias.s...@gmail.com on 8 Nov 2011 at 5:12