Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] vtk in 3D mesh-generation
- Date: Tue, 18 Jan 2011 14:11:00 +0100
wrote:
Hi,
I have a vtk file for a scalar variable in 3D (vtk DataFile Version 2.0,
DATASET UNSTRUCTURED_GRID, Points (coordinates), Cells (vertex indexes),
cell type, point or cell scalar data) and I'm wondering how I can use
these information to create a labeled 3D image to mesh with the 3D
mesh-generation package.
I started resampling my data by means of Visit in order to obtain a
uniform grid, then I tried to use the function:
bool
Image_3::read_vtk_image_data(vtkImageData* vtk_image (in Image_3.cpp in
CGAL).
I enabled it with cmake -DWITH_VTK:BOOL=TRUE in Cmake Cache, but it
doesn't work and the function is not considered member of the class Image,
where I'm wrong?
Could anyone help me?
Thanks en advance!
You need to enable it while configuring CGAL (not only your example program) otherwise you will have a link error.
Also your example need to be linked with the lib CGAL_ImageIO
(add this line in your CMakeLists.txt:
find_package(CGAL COMPONENTS ImageIO) ).
S.
- [cgal-discuss] vtk in 3D mesh-generation, cecilia, 01/12/2011
- Re: [cgal-discuss] vtk in 3D mesh-generation, Sebastien Loriot (GeometryFactory), 01/18/2011
Archive powered by MHonArc 2.6.16.