<!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-&gt;trianglefilter-&gt;decimate-&gt;polydatanormals-&gt;polydata ). i 
indend to calculate the median length between&nbsp;connected points (i didnīt 
found a method, which can do this or similar)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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-&gt;GetOutput()-&gt;GetNumberOfCells();<BR>for(ID=0;ID&lt;cPoints;ID++)<BR>{<BR>ViewNormals-&gt;GetOutput()-&gt;GetCell(ID,cell);<BR>cell-&gt;GetEdge(ID); 
//cell..vtkCell<BR>length[ID]=sqrt(cell-&gt;GetEdge(ID)-&gt;GetLength2()); 
//length..floatarray<BR>}<BR></DIV>
<DIV>i think there are a view problems. not all values of length&nbsp;stored in 
the array are possible, there are extremly big values. i think this are random 
values. i donīt know if ID&lt;cPoints is ok.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I also tried following instead:</DIV>
<DIV>&nbsp;</DIV>
<DIV>edge=cell-&gt;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>&nbsp;</DIV>
<DIV>Thanks a lot</DIV>
<DIV>Bernhard</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#448593 
size=1></FONT></FONT>&nbsp;</DIV></BODY></HTML>