[Paraview] Contribution : Silhouette edges filter

Thierry.CARRARD at CEA.FR Thierry.CARRARD at CEA.FR
Wed Jul 30 03:11:56 EDT 2008


Dear colleagues,

 

Here attached is a vtk filter that extracts silhouette edges from a poly data.

Silhouette of a surface is made of lines lying on the surface where the surface normal is orthogonal to a direction.

 

Such edges are useful to produce CAD or sketch like drawings. It can be combined with a constant colored surface rendering to hide non-visible edges.

 

Attached example images are made from an iso-surface, but much nicer results are achieved when working with lagrangian numerical simulations.

 

 

Usage:

 

Pipeline: vtkPolyData --> vtkPolyDataSilhouette --> vtkPolyDataMapper --> vtkActor

 

Parameters: SpecifiedVector and CameraVector modes use a uniform direction (resp. explicit or from a camera), while SpecifiedOrigin and CameraOrigin modes use the origin-to-center-of-the-edge direction. CameraOrigin mode is the one to use to produce sketch like drawings.

 

tips: try to combine black silhouettes edges (with line width between 1 and 3) with different kinds of surface base renderings (with or without lighting, constant colored or one color per material). It emphasizes very well the shape of some phenomena, especially for numerical simulations.

 

Note: Silhouette edges can also serve to generate shadow volumes, but this would need an additional contribution.

 

 

Contribution :

 

Author:

Thierry Carrard

 

Affiliation:

Commissariat à l'Energie Atomique (CEA), Direction des Applications Militaires, Département des Sciences de l'Information et de la Simulation.

BP12, 91680 Bruyères Le Chatel, France.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080730/c9614652/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPolyDataSilhouette.h
Type: application/octet-stream
Size: 5714 bytes
Desc: vtkPolyDataSilhouette.h
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080730/c9614652/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPolyDataSilhouette.cxx
Type: application/octet-stream
Size: 12091 bytes
Desc: vtkPolyDataSilhouette.cxx
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080730/c9614652/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glace2.JPG
Type: image/jpeg
Size: 28963 bytes
Desc: glace2.JPG
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080730/c9614652/attachment-0002.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glace1.JPG
Type: image/jpeg
Size: 28006 bytes
Desc: glace1.JPG
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080730/c9614652/attachment-0003.jpeg>


More information about the ParaView mailing list