<DIV>Hi Longfei,</DIV>
<DIV> </DIV>
<DIV>I need to understand a few things about your code before i can help you. What is the input image type. Is your image binary? i.e. are there only two kinds of voxel values in the image?</DIV>
<DIV> </DIV>
<DIV>Is the output of the connector filter a 3D Image? Have you verified the output of the connector filter to be correct.</DIV>
<DIV> </DIV>
<DIV>I think once you answer these questions, you will know the solution yourself. in either case let me know how it goes.</DIV>
<DIV> </DIV>
<DIV>Yasser<BR><BR><B><I>Longfei Cong <lfcong@nlpr.ia.ac.cn></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 5.00.3700.6699" name=GENERATOR>
<P><FONT size=2><FONT face=宋体>Hi Yasser Bashir,</FONT></FONT></P>
<P><FONT face=宋体 size=2> Thank a millon for your help .</FONT></P>
<P><FONT face=宋体 size=2>I used vtkClipVolume filter to genrerate a tetrahedral mesh .but there some problems.I seem that there are no meshs generated.</P>
<P><FONT face=宋体 size=2> </FONT></FONT><FONT face=宋体 size=2>clip->SetInput(connector->GetOutput()); </FONT></P>
<P><FONT face=宋体 size=2>clip->SetValue(200);</FONT></P>
<P><FONT face=宋体 size=2> clip->Update();</FONT><FONT face=宋体 size=2><BR>cout<<clip->GetClippedOutput();</FONT></P>
<P><FONT face=宋体 size=2>The output in the screen is in the accessory. the code is code.exe.</FONT></P>
<P><FONT face=宋体 size=2>Wish you can help me.</FONT></P>
<P><FONT face=宋体 size=2>Best regards</FONT></P>
<P><FONT face=宋体 size=2> </P>
<P><FONT face=宋体 size=2> </FONT></FONT><FONT face=宋体 size=2> </FONT></P>
<DIV><FONT size=2>
<TABLE width="100%">
<TBODY>
<TR>
<TD width="100%">
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=546191619-04032004>Hi Longfei,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=546191619-04032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=546191619-04032004>You can use the vtkClipVolume filter to genrerate a tetrahedral mesh from an image in voxel space. The output will be an unstructuredgrid with tetrahedral cells.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=546191619-04032004></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff><SPAN class=546191619-04032004>
<P><FONT face=Arial size=2>vtkImageData* image = importer->GetOutput();</FONT></P>
<P><FONT color=#008000><FONT face=Arial size=2>//VTK convert image to unstructured grid i.e. tetrahedrons.</FONT></P></FONT>
<P><FONT face=Arial size=2>cout << "\nClipping Volume"; </FONT></P>
<P><FONT face=Arial size=2>clip = vtkClipVolume::New();</FONT></P>
<P><FONT face=Arial size=2>clip->SetInput(image); </FONT></P>
<P><FONT face=Arial size=2>clip->SetValue(0);</FONT></P>
<P><FONT face=Arial size=2>clip->Update();</FONT></P>
<P><FONT face=Arial size=2></FONT> </P>
<P><FONT face=Arial size=2></FONT> </P>
<P><SPAN class=546191619-04032004><FONT face=Arial size=2>If this doesnt work for you, try vtkDelaunay3D.</FONT></SPAN></P>
<P><SPAN class=546191619-04032004><FONT face=Arial size=2></FONT></SPAN> </P>
<P><SPAN class=546191619-04032004><FONT face=Arial size=2>Hope this helps.</FONT></SPAN></P>
<P><SPAN class=546191619-04032004><FONT face=Arial size=2></FONT></SPAN> </P>
<P><SPAN class=546191619-04032004><FONT face=Arial size=2>Yasser.</FONT></SPAN></P></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Longfei Cong [mailto:lfcong@nlpr.ia.ac.cn] <BR><B>Sent:</B> Thursday, March 04, 2004 12:54 AM<BR><B>To:</B> Yasser Bashir<BR><B>Subject:</B> Re: [vtkusers] How can i view the edges inside an UnstructuredGrid?<BR><BR></FONT></DIV>
<P><FONT size=2><FONT face=宋体>Hi Yasser Bashir,</FONT></FONT></P>
<P><FONT face=宋体 size=2> I am a beginer of VTk. Could you please help me with tetrahedral mesh generation and give some example about tetrahedral mesh generation. Thanks a lot!<BR> Best regards!</FONT></P>
<DIV><FONT size=2>
<TABLE width="100%">
<TBODY>
<TR>
<TD width="100%">
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 ?>
<TBODY>
<TR>
<TD>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Does any one know a way to display edges inside an unstrucutred grid when viewing it in the wireframe mode?</DIV>
<DIV> </DIV>
<DIV>I know i can extract edges and make them display separately but that makes the scene very heavy.. </DIV>
<DIV> </DIV>
<DIV>Any help will be greatly appreciated.</DIV>
<DIV><BR>Yasser</DIV></TD></TR></TBODY></TABLE></DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>Yahoo! Search - <A href="http://search.yahoo.com/?fr=ad-mailsig-home" target=_blank>Find what you抮e looking for faster.</A> </BLOCKQUOTE></TD></TR></TBODY></TABLE></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></TD></TR></TBODY></TABLE></FONT></DIV>
<DIV>
<P><FONT face=宋体 size=2>= = = = = = = = = = </FONT></P></DIV><BR><BR>> ATTACHMENT part 2 application/octet-stream name=out.bmp<BR><BR><BR>> ATTACHMENT part 3 application/octet-stream name=code.exe<BR></BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Search - <a href="http://search.yahoo.com/?fr=ad-mailsig-home">Find what you抮e looking for faster.</a>