[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] intersection between the polydata and volume
From:       Bill Lorensen <bill.lorensen () gmail ! com>
Date:       2012-03-29 20:03:05
Message-ID: CADZJ4hN6MVs9L0c1fYOf3-ScMsorVij2b9ujSTbT3OEKM7KFgQ () mail ! gmail ! com
[Download RAW message or body]

You could create a volume of signed distances to your polydata using
vtkImplicitPolyDataDistance and vtkSampleFunction. Make sure the
sample function's ModelBounds and dimensions are the same for your
original volume and the sampled volume.
Then, using vtkImplicitVolume with SetVolume set to the output of the
SampleFunction, you can call EvaluateFunction with a coordinate. If
the result is negative the point is inside, if positive it is outside.

I don't think there is a single filter that will do what you want.

On Wed, Mar 28, 2012 at 11:43 PM, qwcbeyond <340181048@qq.com> wrote:
> Hi,everyone.Is it possible to calculate the intersection between the polydata
> and volume ? The final result is I want to get which voxels are inside the
> polydata   and get the voxel position (x,y,z).
> Thanks.
> 
> --
> View this message in context: \
> http://vtk.1045678.n5.nabble.com/intersection-between-the-polydata-and-volume-tp5602792p5602792.html
>  Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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



-- 
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic