[vtkusers] octree visualization example

Francois Bertel francois.bertel at kitware.com
Mon Mar 29 16:51:06 EDT 2010


No. An hyperoctree is a way to to store cell values in a more compact
way than a vtkImageData/vtkUniformGrid. The cells (node or leaves)
have a box shape. It is made to represent volumetric entities not 2D
primitives, like the primitives you can find in vtkPolyData.

On Mon, Mar 29, 2010 at 4:44 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Mon, Mar 29, 2010 at 2:40 PM, Francois Bertel
> <francois.bertel at kitware.com> wrote:
>>
>> Hello,
>>
>> vtkHyperOctree is the class to represent a dataset as an octree.
>> point/cell Locators are just spatial structure to speed-up search but
>> there are not made to store datasets.
>>
>> For example, see VTK/Graphics/Testing/Cxx/TestHyperOctreeSurfaceFilter.cxx
>>
>> The source vtkHyperOctreeSampleFunction is used to create a
>> vtkHyperOctree dataset from a sphere implicit function.
>>
>> vtkHyperOctreeSampleFunction is then plugged to a
>> vtkHyperOctreeSurfaceFilter to display the outer bounding box of the
>> octree.
>>
>
> Francois,
> So can you load points/cells from a vtkPolyData into a vtkHyperOctree?
> Thanks,
>
> David



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list