[vtkusers] surface expansion

David Gobbi david.gobbi at gmail.com
Mon Apr 18 14:11:28 EDT 2016


In order to get vtkWarpVector to use the normals, it might need this:

warpvector->SetInputArrayToProcess(0, 0, 0,
  vtkDataObject::FIELD_ASSOCIATION_POINTS,
  vtkDataSetAttributes::NORMALS);


On Mon, Apr 18, 2016 at 11:57 AM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> vtkWarpVector
>
>
> On Mon, Apr 18, 2016 at 12:53 PM, mbcx9rb9 <richard.j.brown at live.co.uk>
> wrote:
> > I've seen this asked a few times, but I haven't seen an answer for what
> seems
> > like a relatively simple task.
> >
> > How do I go about expanding a surface by a given value (adding the value
> as
> > opposed to multiplying a scaling factor).
> >
> > Is there a class for this?
> >
> > The logic seems pretty straightforward:
> > for each point
> >      new point = point + distance*normal
> > end for
> >
> > Thanks in advance for any help,
> > Richard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160418/6aff753b/attachment.html>


More information about the vtkusers mailing list