Commit 4e62719c authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

BUG: Fix Bug #1828 - IntersectWithLine misses some faces in Penta and Hexa-prisms

parent d572cec5
......@@ -29,7 +29,7 @@
#include "vtkMath.h"
#include "vtkPoints.h"
vtkCxxRevisionMacro(vtkHexagonalPrism, "1.3");
vtkCxxRevisionMacro(vtkHexagonalPrism, "1.4");
vtkStandardNewMacro(vtkHexagonalPrism);
static const double VTK_DIVERGED = 1.e6;
......@@ -583,7 +583,7 @@ int vtkHexagonalPrism::IntersectWithLine(double p1[3], double p2[3], double tol,
}
//now intersect the quad faces
for (faceNum=2; faceNum<6; faceNum++)
for (faceNum=2; faceNum<8; faceNum++)
{
this->Points->GetPoint(faces[faceNum][0], pt1);
this->Points->GetPoint(faces[faceNum][1], pt2);
......
......@@ -29,7 +29,7 @@
#include "vtkMath.h"
#include "vtkPoints.h"
vtkCxxRevisionMacro(vtkPentagonalPrism, "1.5");
vtkCxxRevisionMacro(vtkPentagonalPrism, "1.6");
vtkStandardNewMacro(vtkPentagonalPrism);
static const double VTK_DIVERGED = 1.e6;
......@@ -607,7 +607,7 @@ int vtkPentagonalPrism::IntersectWithLine(double p1[3], double p2[3], double tol
}
//now intersect the quad faces
for (faceNum=2; faceNum<5; faceNum++)
for (faceNum=2; faceNum<7; faceNum++)
{
this->Points->GetPoint(faces[faceNum][0], pt1);
this->Points->GetPoint(faces[faceNum][1], pt2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment