<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Paraview] Contribution : Silhouette edges filter</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Courier New";
        color:maroon;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'>Filters within
ParaView have no access the camera for a variety of reasons. If you want the
filter to update with new camera positions, you will have to integrate it into
a representation/view. Representations and views can be added with plugins,
they just take a bit more work than adding a filter.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'>A new feature
that is available on the ParaView development branch and will be available in
3.4 is the ability for a plugin to add a new representation to the 3D View (the
default view within ParaView). Right now, the feature is undocumented, but
documentation should be coming soon. Perhaps Utkarsh can fill in here.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'>-Ken<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=maroon face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:maroon'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> paraview-bounces@paraview.org
[mailto:paraview-bounces@paraview.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Paul Edwards<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 30, 2008
4:14 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Thierry.CARRARD@cea.fr<br>
<b><span style='font-weight:bold'>Cc:</span></b>
guillaume.colin-de-verdiere@cea.fr; Laurent.COLOMBET@cea.fr;
Jean-Philippe.NOMINE@cea.fr; paraview@paraview.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Paraview]
Contribution : Silhouette edges filter</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>The
filter looks good. I've tried to create an XML file to use in<br>
ParaView. I've attached my attempt although I don't know how to<br>
initialise the camera or prop. Can anyone help here?<br>
<br>
Regards,<br>
Paul<br>
<br>
2008/7/30 <Thierry.CARRARD@cea.fr>:<br>
> Dear colleagues,<br>
><br>
><br>
><br>
> Here attached is a vtk filter that extracts silhouette edges from a poly<br>
> data.<br>
><br>
> Silhouette of a surface is made of lines lying on the surface where the<br>
> surface normal is orthogonal to a direction.<br>
><br>
><br>
><br>
> Such edges are useful to produce CAD or sketch like drawings. It can be<br>
> combined with a constant colored surface rendering to hide non-visible<br>
> edges.<br>
><br>
><br>
><br>
> Attached example images are made from an iso-surface, but much nicer
results<br>
> are achieved when working with lagrangian numerical simulations.<br>
><br>
><br>
><br>
><br>
><br>
> Usage:<br>
><br>
><br>
><br>
> Pipeline: vtkPolyData à vtkPolyDataSilhouette à vtkPolyDataMapper à
vtkActor<br>
><br>
><br>
><br>
> Parameters: SpecifiedVector and CameraVector modes use a uniform direction<br>
> (resp. explicit or from a camera), while SpecifiedOrigin and CameraOrigin<br>
> modes use the origin-to-center-of-the-edge direction. CameraOrigin mode is<br>
> the one to use to produce sketch like drawings.<br>
><br>
><br>
><br>
> tips: try to combine black silhouettes edges (with line width between 1
and<br>
> 3) with different kinds of surface base renderings (with or without<br>
> lighting, constant colored or one color per material). It emphasizes very<br>
> well the shape of some phenomena, especially for numerical simulations.<br>
><br>
><br>
><br>
> Note: Silhouette edges can also serve to generate shadow volumes, but this<br>
> would need an additional contribution.<br>
><br>
><br>
><br>
><br>
><br>
> Contribution :<br>
><br>
><br>
><br>
> Author:<br>
><br>
> Thierry Carrard<br>
><br>
><br>
><br>
> Affiliation:<br>
><br>
> Commissariat à l'Energie Atomique (CEA), Direction des Applications<br>
> Militaires, Département des Sciences de l'Information et de la Simulation.<br>
><br>
> BP12, 91680 <st1:place w:st="on"><st1:City w:st="on">Bruyères Le Chatel</st1:City>,
<st1:country-region w:st="on">France</st1:country-region></st1:place>.<br>
><br>
> _______________________________________________<br>
> ParaView mailing list<br>
> ParaView@paraview.org<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
></span></font><o:p></o:p></p>
</div>
</div>
</body>
</html>