212 |
|
qh_setvoronoi_all(); |
213 |
|
|
214 |
|
|
215 |
< |
int convexNumVert = qh_setsize(qh_facetvertices (qh facet_list, NULL, false)); |
215 |
> |
// int convexNumVert = qh_setsize(qh_facetvertices (qh facet_list, NULL, false)); |
216 |
|
//Insert all the sample points, because, even with alpha=0, the |
217 |
|
//alpha shape/alpha complex will contain them. |
218 |
|
|
364 |
|
RealType area = face.getArea(); |
365 |
|
area_ += area; |
366 |
|
Vector3d normal = face.getUnitNormal(); |
367 |
< |
RealType offset = ((0.0-p[0][0])*normal[0] + (0.0-p[0][1])*normal[1] + (0.0-p[0][2])*normal[2]); |
367 |
> |
// RealType offset = ((0.0-p[0][0])*normal[0] + (0.0-p[0][1])*normal[1] + (0.0-p[0][2])*normal[2]); |
368 |
|
RealType dist = normal[0] * interiorPoint[0] + normal[1]*interiorPoint[1] + normal[2]*interiorPoint[2]; |
369 |
|
volume_ += dist *area/qh hull_dim; |
370 |
|
|