[vtkusers] Intersecting a line with vtkImageData/vtkStructuredGrid cells

marco piccima at gmail.com
Mon Dec 30 13:36:55 EST 2013


Hi
I'm using in a vtkPolyData after TriangleFilter and I can get the list 
of all CellIds intersected from my rays.
I think it should work on vtkStructuredGrid too, but I'm not sure on 
vtkImageData


Marco
On 12/30/2013 12:52 PM, David Doria wrote:
> I have a finite line and I want to know all of the cells in either a 
> vtkImageData or a vtkStructuredGrid that the line passes through.
>
> What I'm looking for is exactly
>
>  vtkCellLocator::IntersectWithLine ( double [3], double [3], vtkPoints 
> *, vtkIdList * cellIds)
>
> but when I try it I get an error:
>
> "The locator class - vtkCellLocator does not yet support this 
> IntersectWithLine interface"
>
> Does anyone know if there is a VTK-way (other than doing a line-box 
> intersection test on every cell) to determine which cells are intersected?
>
> Thanks,
>
> David
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131230/4957dc3e/attachment.htm>


More information about the vtkusers mailing list