[vtkusers] surface expansion
Richard Brown
richard.j.brown at live.co.uk
Tue Apr 19 08:49:17 EDT 2016
Thanks for the help.
I’m looking at vtkWarpVector examples, however, and both of them are simply:
warp = vtk.vtkWarpVector()
warp.SetInputConnection(p2c.GetOutputPort())
and:
warp = vtk.vtkWarpVector()
warp.SetInputConnection(castToUnstructuredGrid.GetOutputPort())
I can’t figure out how to apply this class to my needs. Is there an example anywhere that I can use?
Regards,
Richard
> On 18 Apr 2016, at 20:11, David Gobbi <david.gobbi at gmail.com> wrote:
>
> 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 <mailto:bill.lorensen at gmail.com>> wrote:
> vtkWarpVector
>
>
> On Mon, Apr 18, 2016 at 12:53 PM, mbcx9rb9 <richard.j.brown at live.co.uk <mailto: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/20160419/acd005d6/attachment.html>
More information about the vtkusers
mailing list