44 virtual double sample(
const std::vector<double> &
position) = 0;
51 virtual double voxel(
const std::vector<int> &
index) = 0;
58 virtual std::vector<int> posToIndex(
const std::vector<double> &
position) = 0;
60 virtual bool isSDF() = 0;
62 virtual bool isHeightField() = 0;
64 virtual double volumeMax() = 0;
66 virtual double volumeMin() = 0;
68 virtual double volumeAverage() = 0;
73 virtual double taper() = 0;
82 virtual bool isEmpty() = 0;
84 virtual int activeVoxelCount() = 0;
107 switch (data_type.
id())
109 case HOM_vdbData::Boolean_Id:
110 return swig::from(self->voxelRangeAsBool(range));
111 case HOM_vdbData::Float_Id:
112 return swig::from(self->voxelRangeAsFloat(range));
113 case HOM_vdbData::Int_Id:
114 return swig::from(self->voxelRangeAsInt(range));
115 case HOM_vdbData::Vector3_Id:
116 return swig::from(self->voxelRangeAsVector3(range));
120 return SWIG_Py_Void();
SIM_API const UT_StringHolder vertex
#define HOM_DESTRUCT_OBJECT(pointer)
HOM_VDB(const HOM_VDB &volume)
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
#define HOM_CONSTRUCT_OBJECT(pointer)
HUSD_API const char * resolution()
GA_API const UT_StringHolder transform
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
const std::type_info & enumClass() const
SIM_API const UT_StringHolder position
HUSD_API const char * dataType()