51#include <boost/foreach.hpp>
123 mfm->localToWorld(
lsX,
wsX, sample.first);
124 mfm->localToWorld(
lsY,
wsY, sample.first);
125 mfm->localToWorld(
lsZ,
wsZ, sample.first);
135 wsX *= wsVoxelSize.x *
res.x;
136 wsY *= wsVoxelSize.y *
res.y;
137 wsZ *= wsVoxelSize.z *
res.z;
164 -
static_cast<int>(std::floor(
vsOrigin.y + 0.5)),
165 -
static_cast<int>(std::floor(
vsOrigin.z + 0.5)));
Contains utility functions for constructing coordinate systems.
FIELD3D_NAMESPACE_OPEN FIELD3D_MTX_T< T > coordinateSystem(const FIELD3D_VEC3_T< T > &e1, const FIELD3D_VEC3_T< T > &e2, const FIELD3D_VEC3_T< T > &e3, const FIELD3D_VEC3_T< T > &origin)
Constructs a coordinate systems given a set of basis vectors and an origin.
V3i computeOffset(const FieldRes &f)
Computes the origin/offset of a field.
Contains MIP-related utility functions.
FieldMetadata & metadata()
accessor to the m_metadata class
boost::intrusive_ptr< FieldMapping > Ptr
FieldMapping::Ptr mapping()
Returns a pointer to the mapping.
Represents the mapping of a field by a matrix transform.
boost::intrusive_ptr< MatrixFieldMapping > Ptr
Convenience typedef.
const std::string k_mipOffsetStr
FIELD3D_API V3i mipResolution(const V3i &baseRes, const size_t level, const V3i &add)
FIELD3D_API FieldMapping::Ptr adjustedMIPFieldMapping(const FieldRes *base, const V3i &baseRes, const Box3i &extents, const size_t level)
#define FIELD3D_NAMESPACE_SOURCE_CLOSE