[vtkusers] 3d margin (uniform or non-isotropic) around a polydata

Dean Inglis dean.inglis at sympatico.ca
Mon Jul 14 14:30:12 EDT 2008


Hi Greg,



Try the following pipeline in Paraview:

 

Sources -> Plane (origin: 0, 0, 0 , point 1: 20, 0, 0 , point 2: 0, 20, 0 )

Filters -> Linear Extrusion ( scale factor: 1, vector: 0, 0, 20, capping on
)

Filters -> Normals Generation ( feature angle: 95, splitting on, consistency
on, flip normals on

               non-manifold traversal on)            

Filters -> Triangulate

Filters -> Glyph ( use arrow, scale mode: vector, vectors: normals, scale
factor: 2)

Filters -> Warp (vectors : nomals, scale factor: 2, change color to green,
set opacity to 0.2)

 

You should see a box with arrow glyphs pointing out from it

and a transparent green "wrapping" around it.  Basically

for other 3D shapes, triangulate (vtkTriangleFilter) the surface and
generate

normals (vtkPolyDataNormals), then generate a surface that wraps it using 

vtkWarpVector.

 

Dean

 

I was wondering if anyone knows of a good algorithm (fast) to do 3d margin
expansion around a surface (polydata) ?
Perhaps the folks with medical imaging applications have this already ?
 
GT

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080714/b31fd606/attachment.htm>


More information about the vtkusers mailing list