13 this->stateTextureMesh()->setDataPtr(std::make_shared<TextureMesh>());
25 this->stateTextureMesh()->connect(render->inTextureMesh());
28 this->stateTextureMesh()->promoteOuput();
45 auto fullname = this->varFileName()->getValue();
46 auto root = fullname.path().parent_path();
48 auto texMesh = this->stateTextureMesh()->getDataPtr();
59 this->varLocation()->setValue(
Vec3f(0));
60 this->varRotation()->setValue(
Vec3f(0));
61 this->varScale()->setValue(
Vec3f(1));
78 auto t = this->varLocation()->getValue();
80 auto s = this->varScale()->getValue();
89 auto texMesh = this->stateTextureMesh()->getDataPtr();
91 texMesh->vertices().assign(ts.
getPoints());
#define IMPLEMENT_CLASS(name)
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Quat< Real > computeQuaternion()
DArray< Coord > & getPoints()
Return the array of points.
void setPoints(const std::vector< Coord > &pos)
void translate(const Coord t)
DArray< Vec3f > mInitialNormal
~TextureMeshLoader() override
DArray< Vec3f > mInitialVertex
void resetStates() override
DArray< Vec2f > mInitialTexCoord
void setNormals(DArray< Coord > &normals)
DArray< Coord > & getVertexNormals()
void rotate(const Coord angle) override
This is an implementation of AdditiveCCD based on peridyno.
bool loadTextureMeshFromObj(std::shared_ptr< TextureMesh > texMesh, const FilePath &fullname)