[vtkusers] surface expansion

David Gobbi david.gobbi at gmail.com
Tue Apr 19 09:12:28 EDT 2016


I don't know of any example that does specifically what you want.
But the pipeline would go something like this:

1) use vtkPolyDataNormals to compute normals at each point.

2) feed the output of vtkPolyDataNormals into vtkWarpVector.

3) tell vtkWarpVector to use the normals, and give it a scale factor:

warp.SetInputConnection(norms.GetOutputPort())

warp.SetInputArrayToProcess(0, 0, 0,
  vtkDataObject.FIELD_ASSOCIATION_POINTS,
  vtkDataSetAttributes.NORMALS)

warp.SetScaleFactor(5.0)

I've never actually tried this, but in theory, it should work.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160419/d745ca0e/attachment.html>


More information about the vtkusers mailing list