[vtkusers] bug in vtkQuadraticTetra::IntersectWithLine ?

Jianjun Tian Jianjun.Tian at autodesk.com
Tue Nov 3 10:32:24 EST 2015


Hi,
       Should the 4 in the i loop be 6 because the Face has 6 nodes, not 4.

int vtkQuadraticTetra::IntersectWithLine(double* p1, double* p2,
                                         double tol, double& t,
                                         double* x, double* pcoords, int& subId)
{
  int intersection=0;
  double tTemp;
  double pc[3], xTemp[3];
  int faceNum;

  t = VTK_DOUBLE_MAX;
  for (faceNum=0; faceNum<4; faceNum++)
    {
    for (int i=0; i<4; i++)
      {
      this->Face->Points->SetPoint(i,this->Points->GetPoint(TetraFaces[faceNum][i]));
      }
......
}

Thanks,

Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151103/e9cb89e9/attachment.html>


More information about the vtkusers mailing list