ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/math/AlphaHull.cpp
(Generate patch)

Comparing trunk/src/math/AlphaHull.cpp (file contents):
Revision 2068 by gezelter, Fri Feb 20 15:12:07 2015 UTC vs.
Revision 2069 by gezelter, Thu Mar 5 16:30:23 2015 UTC

# Line 212 | Line 212 | void AlphaHull::computeHull(vector<StuntDouble*> bodyd
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  
# Line 364 | Line 364 | void AlphaHull::computeHull(vector<StuntDouble*> bodyd
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        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines