[vtkusers] Minecraft-style volume rendering
Bill Lorensen
bill.lorensen at gmail.com
Thu Mar 29 12:15:20 EDT 2012
Tim,
Take a look at this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels
The output of transformModel may be what you want.
Bill
On Thu, Mar 29, 2012 at 8:40 AM, Tim Hutton <tim.hutton at gmail.com> wrote:
> Hello,
>
> I've got a 3d images (vtkImageData) containing values 0 and 1. I'd
> like to render this as blocky voxels - rendered with cubes like in
> Minecraft.
>
> I've tried vtkContourFilter and vtkDiscreteMarchingCubes but these
> both show angled surfaces - e.g. an octahedron for an isolated voxel.
>
> I tried vtkGeometryFilter but this just gives me the outer surface of
> the volume. And vtkImageThreshold just changes the pixel values.
>
> I tried vtkImageDataGeometryFilter but this doesn't seem to support
> thresholding in 3D?
>
> Thanks for your help,
>
> Tim
>
> --
> Tim Hutton - http://www.sq3.org.uk - http://profiles.google.com/tim.hutton/
> _______________________________________________
> 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
More information about the vtkusers
mailing list