8 #include "../casters.h"
10 #include <pybind11/pybind11.h>
11 #include <pybind11/stl.h>
12 #include <pybind11/stl_bind.h>
15 using namespace pybind11::literals;
21 .def(py::init<const QString &>(), py::arg(
"name") = QString(
"default"))
29 py::arg(
"allowDuplicateNames") =
false)
30 .def_static(
"ParseMTL",
39 py::arg(
"baseFilename"),
void define_ccMaterialSet(py::module &m)
Hierarchical CLOUDVIEWER Object.
int findMaterialByName(QString mtlName) const
Finds material by name.
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
int addMaterial(ccMaterial::CShared mat, bool allowDuplicateNames=false)
Adds a material.
bool saveAsMTL(QString path, const QString &baseFilename, QStringList &errors) const
Saves to an MTL file (+ associated texture images)
static bool ParseMTL(QString path, const QString &filename, ccMaterialSet &materials, QStringList &errors)
MTL (material) file parser.
virtual bool isShareable() const override
Returns whether object is shareable or not.
ccMaterialSet * clone() const
Clones materials set.
virtual bool isSerializable() const override
Returns whether object is serializable of not.
int findMaterialByUniqueID(QString uniqueID) const
Finds material by unique identifier.
bool append(const ccMaterialSet &source)
Appends materials from another set.
static double module(T *vector)