[vtkusers] delete vertex from mesh
rima4
rima.sb4 at gmail.com
Thu Oct 27 06:48:56 EDT 2011
hi all
what i'm trying to do is defining points inside et outside an object and i
just want simply to eliminate those points who are outside, i tried this
code but when t run it it makes a bug:
double pcoords[3], weights[3];
vtkIdType cellId;
int subId;
cellId = df->GetOutput()->FindCell(E, NULL, 0, .1,subId, pcoords,
weights);
if (cellId>=0)
{
std::cout << "inside" << std::endl;
}
else
{
std::cout << "outside" << std::endl;
epol->DeleteCell(cellId);
}
}
can someone help me please?
--
View this message in context: http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4942623.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list