[vtkusers] Densify points in Polydata?

David Doria daviddoria at gmail.com
Thu May 23 09:05:31 EDT 2013


On Thu, May 23, 2013 at 8:35 AM, Marc Huber <marchuber.hft at gmx.de> wrote:
> Am 5/23/2013 2:12 PM, schrieb David Doria:
>
>> On Thu, May 23, 2013 at 7:40 AM, Marc Huber <marchuber.hft at gmx.de> wrote:
>>>
>>> Hi,
>>>
>>> I have a Polydata object consisting of e.g. 8 points. I'd like to get
>>> more
>>> points on the object.
>>> I tried it with a vtkPolyDataPointSampler.
>>> This works fine with a sphere but it crashes with vtkPolyData.
>>>
>>> Has anyone an idea what the problem might be? Or any alternative idea?
>>> Thanks in advance!


Change the SetDistance(.1) call to SetDistance(1). With .1, my memory
fills up and it crashes as you've mentioned. It must be because your
object is 1000x100x10, while the demo sphere was only 1x1x1.

David



More information about the vtkusers mailing list