[vtkusers] Help on selecting voxels inside a vtkImplicitFunction
Robin Zhao
zhaoyoubing at gmail.com
Sat Sep 19 16:55:58 EDT 2009
Hi, David,
Thank you very much for your quick response.
I'm now studying vtkImageStencil which seems to be able to meet my
requirement.
Cheers,
Robin
On Sat, Sep 19, 2009 at 9:48 PM, David E DeMarle
<dave.demarle at kitware.com>wrote:
> In general the output of this type of operation has to be either
> vtkUnstructuredGrid or vtkPolyData because when you take an arbitrary subset
> out of a structured data set you loose the regularity.
>
> vtkExtractVOI pulls out aligned "slabs" out of structured datasets and
> because the slabs are aligned in ijk space it's output can stay structured.
>
> If you have to keep it structured your only option is to create an
> inside/outside data array. You can threshold on that later if you need to,
> but again that will produce an unstructured dataset. I think vtkProbeFilter
> and vtkSampleFunction both can be used to create the "insidedness" array.
> Others options likely exist too.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
> On Sat, Sep 19, 2009 at 10:13 AM, Robin Zhao <zhaoyoubing at gmail.com>wrote:
>
>> Hi, Dear vtk guys,
>>
>> I met some difficulties on selecting voxels inside a user defined implicit
>> function.
>>
>> I have studied vtkExtractGeometry, but its output is unstructured grid.
>>
>> I also studied vtkSelection which seems not to support
>> vtkImplicitFunction.
>>
>> Are there any possible methods to do it in the framework of vtk,
>> or do I need to do it by myself.
>>
>> Cheers
>>
>> _______________________________________________
>> 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
>>
>>
>
--
Robin Youbing Zhao(趙友兵)
Phone: (+44) 75 0202 1598 (UK)
(+86) 135 8571 8767 (中國)
Email : zhaoyoubing at gmail.com
MSN : zhaoyoubing at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090919/bf775774/attachment.htm>
More information about the vtkusers
mailing list