\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12 - 3D Mesh Generation
LabeledImage_3 Concept Reference


The concept LabeledImage_3 describes the requirements for the second template parameter of the class CGAL::Labeled_image_mesh_domain_3<Image,BGT> which represents mesh domains defined by 3D labeled images. A 3D labeled image is a 3D array of elements of an integral type Type. Type can be bool, char, short, int, or long (signed or not). Such an array is associated to a 3D axis-aligned regular grid, in \( \mathbb{R}^3\). A cell of this grid is denoted by voxel. A voxel is an iso-cuboid of size vx(), vy(), and vz().

Has Models:
CGAL::Image_3<Kernel, T>, for any CGAL kernel K and any integral type T


typedef unspecified_type Type
 Type of voxel data. More...
typedef unspecified_type RT
 Ring number type.


int xdim ()
 First dimension of the 3D array, i.e., the number of voxels along the x coordinate axis.
int ydim ()
 Second dimension of the 3D array.
int zdim ()
 Third dimension of the 3D array.
RT vx ()
 Size of each voxel along x coordinate axis.
RT vy ()
 Size of each voxel along y coordinate axis.
RT vz ()
 Size of each voxel along z coordinate axis.
const Typedata ()
 Pointer to the first element of the 3D image. More...

Member Typedef Documentation

◆ Type

Type of voxel data.

Must be an integral type.

Member Function Documentation

◆ data()

const Type* LabeledImage_3::data ( )

Pointer to the first element of the 3D image.

The size of the array must be xdim() \( \times\)ydim() \( \times\)zdim().