CGAL 6.0 - 3D Isosurfacing
Loading...
Searching...
No Matches

Functions

template<typename Grid , typename Values >
bool CGAL::Isosurfacing::IO::convert_image_to_grid (const CGAL::Image_3 &image, Grid &grid, Values &values)
 extracts geometry and values from a CGAL::Image_3.
 
template<typename Grid , typename Values >
CGAL::Image_3 CGAL::Isosurfacing::IO::convert_grid_to_image (const Grid &grid, const Values &values)
 create a CGAL::Image_3 from a grid and a field of values.
 

Function Documentation

◆ convert_grid_to_image()

template<typename Grid , typename Values >
CGAL::Image_3 CGAL::Isosurfacing::IO::convert_grid_to_image ( const Grid &  grid,
const Values &  values 
)

#include <CGAL/Isosurfacing_3/IO/Image_3.h>

create a CGAL::Image_3 from a grid and a field of values.

Template Parameters
Gridmust be CGAL::Isosurfacing::Cartesian_grid_3<GeomTraits> with GeomTraits a model of IsosurfacingTraits_3
Valuesmust be CGAL::Isosurfacing::Interpolated_discrete_values_3<Grid>
Parameters
gridthe space partitioning data structure
valuesthe field of values

◆ convert_image_to_grid()

template<typename Grid , typename Values >
bool CGAL::Isosurfacing::IO::convert_image_to_grid ( const CGAL::Image_3 image,
Grid &  grid,
Values &  values 
)

#include <CGAL/Isosurfacing_3/IO/Image_3.h>

extracts geometry and values from a CGAL::Image_3.

The dimensions and geometric span are read from the image. The values stored in the image must be of type Geom_traits::FT or implicitly convertible to it.

Template Parameters
Gridmust be CGAL::Isosurfacing::Cartesian_grid_3<GeomTraits> whose GeomTraits is a model of IsosurfacingTraits_3
Valuesmust be CGAL::Isosurfacing::Interpolated_discrete_values_3<Grid>
Parameters
imagethe image providing the data
gridthe output grid
valuesthe output values