factor of two

This commit is contained in:
James E McClure 2018-09-15 09:49:22 -04:00
parent a3c79d126f
commit 958a352ca7
2 changed files with 1 additions and 2 deletions

View File

@ -206,7 +206,7 @@ void Minkowski::ComputeScalar(const DoubleArray Field, const double isovalue)
a1 = object.EdgeAngle(e1);
a2 = object.EdgeAngle(e2);
a3 = object.EdgeAngle(e3);
Ji += 0.08333333333333*(a1*s1+a2*s2+a3*s3);
Ji += 0.16666666666666*(a1*s1+a2*s2+a3*s3);
//if (0.08333333333333*(a1*s1+a2*s2+a3*s3) < 0.f){
//double intcurv=0.08333333333333*(a1*s1+a2*s2+a3*s3);
//double surfarea=sqrt(s*(s-s1)*(s-s2)*(s-s3));

View File

@ -315,7 +315,6 @@ Point DECL::TriNormal(int edge)
{
Point P,Q,R;
Point U,V,W;
double ux,uy,uz,vx,vy,vz;
double nx,ny,nz,len;
// at cube faces define outward normal to cube
if (edge == -1){