<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi!<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>i want to calculate the mesh resolution of
triangulated data (from
objreader->trianglefilter->decimate->polydatanormals->polydata ). i
indend to calculate the median length between connected points (i didnīt
found a method, which can do this or similar)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i used following code to obtain the
length:</FONT><FONT face=Arial size=2></DIV>
<DIV><BR>cPoints=ViewNormals->GetOutput()->GetNumberOfCells();<BR>for(ID=0;ID<cPoints;ID++)<BR>{<BR>ViewNormals->GetOutput()->GetCell(ID,cell);<BR>cell->GetEdge(ID);
//cell..vtkCell<BR>length[ID]=sqrt(cell->GetEdge(ID)->GetLength2());
//length..floatarray<BR>}<BR></DIV>
<DIV>i think there are a view problems. not all values of length stored in
the array are possible, there are extremly big values. i think this are random
values. i donīt know if ID<cPoints is ok.</DIV>
<DIV> </DIV>
<DIV>I also tried following instead:</DIV>
<DIV> </DIV>
<DIV>edge=cell->GetNumberOfEdges();</DIV>
<DIV><BR>the value was 3. i think this is because i used
vtkTriangleFilter.</DIV>
<DIV>Now i have no more ideas. Maybe you can help me.</DIV>
<DIV> </DIV>
<DIV>Thanks a lot</DIV>
<DIV>Bernhard</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana color=#448593
size=1></FONT></FONT> </DIV></BODY></HTML>