45 virtual double sample(
const std::vector<double> &position) = 0;
47 virtual HOM_Vector3 *samplev(
const std::vector<double> &position) = 0;
52 virtual double voxel(
const std::vector<int> &
index) = 0;
59 virtual std::vector<int> posToIndex(
const std::vector<double> &position) = 0;
61 virtual bool isSDF() = 0;
63 virtual bool isHeightField() = 0;
65 virtual double volumeMax() = 0;
67 virtual double volumeMin() = 0;
69 virtual double volumeAverage() = 0;
74 virtual double taper() = 0;
83 virtual bool isEmpty() = 0;
85 virtual int activeVoxelCount() = 0;
108 switch (data_type.
id())
110 case HOM_vdbData::Boolean_Id:
111 return swig::from(self->voxelRangeAsBool(range));
112 case HOM_vdbData::Float_Id:
113 return swig::from(self->voxelRangeAsFloat(range));
114 case HOM_vdbData::Int_Id:
115 return swig::from(self->voxelRangeAsInt(range));
116 case HOM_vdbData::Vector3_Id:
117 return swig::from(self->voxelRangeAsVector3(range));
121 return SWIG_Py_Void();
#define HOM_DESTRUCT_OBJECT(pointer)
HOM_VDB(const HOM_VDB &volume)
OIIO_API bool rename(string_view from, string_view to, std::string &err)
string __repr__(VtArray< T > const &self)
GLuint GLenum GLenum transform
#define HOM_CONSTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
HUSD_API const char * resolution()
const std::type_info & enumClass() const