<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><FONT size=3>Hi , vtkusers ,</FONT><BR>
<FONT size=3></FONT>&nbsp;<BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; My friends ask me how to compute the area or volume of vtk rendering object . My thought is :</FONT><BR>
<FONT size=3></FONT>&nbsp;<BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; 1 . we know , if&nbsp;the&nbsp;region&nbsp;,&nbsp;which&nbsp;would be computed , &nbsp;is regular&nbsp;, the computation will be </FONT><BR>
<FONT size=3>easy . </FONT><FONT size=3>in fact , however , what we have to compute&nbsp;are always arbitrary&nbsp;polygons&nbsp;.&nbsp;there are several </FONT><BR>
<FONT size=3>methods : </FONT><FONT size=3>we can divide it into several&nbsp;triangles , computing each triangle's area and then&nbsp;sum </FONT><BR>
<FONT size=3>them&nbsp;up . but&nbsp;there is a precondition : the polygon have few points&nbsp;. the more&nbsp;points , the more </FONT><BR>
<FONT size=3>difficult&nbsp;it is . </FONT><BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; Is there any filters that can compute the <FONT color=#0000ff><STRONG>arbitrary polygon's area </STRONG></FONT>? I test it in vtkMath , but </FONT><BR>
<FONT size=3>it </FONT><FONT size=3>just performs common math operations . </FONT><BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; or , if there is not such a filter , I think it would be better to writer such a class , because </FONT><BR>
<FONT size=3>it </FONT><FONT size=3>will be used widely , like geology and so on .</FONT><BR>
<FONT size=3></FONT>&nbsp;<BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; 2 . if we reconstruct a arbitrary 3D object , maybe we want to get its volume . I have&nbsp;been </FONT><BR>
<FONT size=3>thinking we can compute it by&nbsp;voxels ,because the voxel is regular ,&nbsp;then we can compute it&nbsp;. but I </FONT><BR>
<FONT size=3>could not&nbsp;get the number of voxels in 3D&nbsp;object . I can only get the number of cells , but it would </FONT><BR>
<FONT size=3>not help me .&nbsp;</FONT><BR>
<FONT size=3></FONT>&nbsp;<BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; so , if we&nbsp;want to compute <FONT color=#0000ff><STRONG>volume</STRONG></FONT> , what filters we can use ? </FONT><BR>
&nbsp;<BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; thank you&nbsp;with great regards !</FONT><BR>
<FONT size=3>&nbsp;&nbsp;&nbsp; </FONT><BR>
<FONT size=3>&nbsp;&nbsp;&nbsp;&nbsp;Mark</FONT>&nbsp;<BR><br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://messenger.live.cn/' target='_new'>立即体验!</a></body>
</html>