[vtkusers] Replacing Points in polydata mesh
Aashish Chaudhary
aashish.chaudhary at kitware.com
Thu Apr 12 13:48:00 EDT 2012
>
> This isn't done very often in VTK since filters aren't allowed to modify
> their inputs. That being said, you could do something like the following
> if you wanted to change the coordinate location of a point:
> vtkPoints* points = poly->GetPoints();
> points->SetPoint();
>
Make sure to mark points modified (after you change bunch of them) by
points->Modified();
HTH,
Aashish
> If you wanted to change your grid topology you'll have to get depper and
> modify the appropriate vtkCellArray of the polydata.
>
> Hope this helps,
> Andy
>
> On Thu, Apr 12, 2012 at 12:03 PM, Bayliss, Chris (Chicago) <
> cbayliss at gnresound.com> wrote:
>
>> Hello Users,****
>>
>> ** **
>>
>> I am looking for a way to replace points in vtkPolyData. I already have
>> a polydata surface and I would like to drag the points on that surface to
>> new locations while maintaining the existing surface. If I create a new
>> set of polydata points, I would have to reconstruct the surface, which I am
>> having trouble with. Vtksurfacereconstruction filter does not produce a
>> representative surface and I cannot get vtkpowercrustsurfacereconstruction
>> filter to work.****
>>
>> ** **
>>
>> I can’t seem to figure out which functions in vtkPolyData would produce
>> the desired result. Any advice would be greatly appreciated. Any ideas on
>> how to get vtkpowercrustrsurfacereconstruction filter to work would also be
>> very helpful.****
>>
>> ** **
>>
>> Thanks,****
>>
>> ** **
>>
>> Chris****
>>
>> ** **
>>
>> ** **
>>
>> ** **
>>
>>
>> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
>> The information in this e-mail (including attachments, if any) is
>> considered confidential and is intended only for the recipient(s) listed
>> above. Any review, use, disclosure, distribution or copying of this e-mail
>> is prohibited except by or on behalf of the intended recipient. If you have
>> received this email in error, please notify me immediately by reply e-mail,
>> delete this e-mail, and do not disclose its contents to anyone. Any
>> opinions expressed in this e-mail are those of the individual and not
>> necessarily the GN group. Thank you.
>> ******************** DISCLAIMER END ************************
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120412/fdce75e0/attachment.htm>
More information about the vtkusers
mailing list