<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY bgColor=#eaeaea>
<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>
<DIV>
<P><FONT face=宋体 size=2>= = = = = = = = = = = = = = = = = = = = = =
</FONT></P>
<P><FONT face=宋体 size=2> 致<BR>礼!</FONT></P>
<DIV> </DIV>
<DIV><FONT face=宋体 size=2> Longfei Cong</FONT></DIV>
<DIV><FONT face=宋体 size=2><FONT face=宋体 size=2> </FONT><A
href="mailto:lfcong@nlpr.ia.ac.cn"
target=_blank>lfcong@nlpr.ia.ac.cn</A></FONT></DIV>
<DIV><FONT face=宋体 size=2> 2004-03-04</FONT></DIV>
<DIV> </DIV></DIV></BLOCKQUOTE></BODY></HTML>