Commit ee3a7c30 authored by David Thompson's avatar David Thompson
Browse files

Fix polyhedron-ray intersection...

... by properly resizing point and point-id arrays for
each polygonal face before intersecting with the ray.

Change-Id: I24b7053428e50152c8e10fcb240a56a924e772ce
parent 31d834a4
......@@ -1775,6 +1775,8 @@ int vtkPolyhedron::IntersectWithLine(double p1[3], double p2[3], double tol,
hit = this->Quad->IntersectWithLine(p1,p2,tol,t,x,pc,subId);
break;
default: //general polygon
this->Polygon->GetPoints()->SetNumberOfPoints(npts);
this->Polygon->GetPointIds()->SetNumberOfIds(npts);
for (i=0; i<npts; i++)
{
this->Polygon->Points->SetPoint(i,this->Points->GetPoint(face[i+1]));
......
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