35 #ifndef AIMS_RESAMPLING_MESHTOVOXELSRESAMPLER_H
36 #define AIMS_RESAMPLING_MESHTOVOXELSRESAMPLER_H
65 unsigned int connexity=26);
69 unsigned int dimx,
unsigned int dimy,
unsigned int dimz)
const;
73 void setVoxelSize( O & output,
float vx,
float vy,
float vz,
80 MeshToVoxelsResampler<carto::rc_ptr<carto::Volume<unsigned int> > >::
82 unsigned int dimx,
unsigned int dimy,
unsigned int dimz)
const
87 fill_header( hdr, ima, offset, spacing );
91 template<>
inline void MeshToVoxelsResampler<carto::rc_ptr<carto::Volume<unsigned int> > >::
95 output->at(x2, y2, z2) = ind;
101 unsigned int,
unsigned int,
unsigned int)
const
104 MeshToVoxelsResampler<aims::BucketMap<Void> >::fill_header(
112 void MeshToVoxelsResampler<aims::BucketMap<Void> >::
120 MeshToVoxelsResampler<carto::rc_ptr<carto::Volume<unsigned int> > >::
122 float vy,
float vz,
float vt)
const
129 MeshToVoxelsResampler<aims::BucketMap<Void> >::
131 float vy,
float vz,
float vt)
const
void insert(const Point3d &pos, const T &item)
void setSizeXYZT(float sizex, float sizey, float sizez, float sizet)
const aims::PythonHeader & header() const
void setVoxelSize(float sizex, float sizey, float sizez, float sizet)
3D rasterization (voxelization) of a mesh O : VolumeRef<unsigned int> or BucketMap<Void>
O doit(const AimsSurfaceTriangle &surface, float spacing=1., unsigned int connexity=26)
surface : input mesh spacing : voxel size (according to mesh metric) connexity : 6 or 26
virtual ~MeshToVoxelsResampler()
AIMSDATA_API AimsTimeSurface< 3, Void > AimsSurfaceTriangle