PeriDyno 1.0.0
Loading...
Searching...
No Matches
ConvertToTextureMesh.h
Go to the documentation of this file.
1
16
17#pragma once
18#include "ModelEditing.h"
19
20#include "Topology/TriangleSet.h"
21#include "Topology/PolygonSet.h"
23#include "Color.h"
24#include "FilePath.h"
25
26
27namespace dyno
28{
29 template<typename TDataType>
30 class ConvertToTextureMesh : public ModelEditing<TDataType>
31 {
33
34 public:
35 typedef typename TDataType::Real Real;
36 typedef typename TDataType::Coord Coord;
38
40
41 public:
42
43 DEF_VAR(FilePath, DiffuseTexture, "", "");
44 DEF_VAR(FilePath, NormalTexture, "", "");
45 DEF_VAR(Real, UvScaleU, 9, "");
46 DEF_VAR(Real, UvScaleV, 9, "");
47 DEF_VAR(bool,UseBoundingTransform,false,"");
48
50
52
53 protected:
54 void resetStates() override;
55
56 void varChanged();
57
59
60 void createUV();
61
63
65
67
68 private:
69
70
71 };
72
74
75}
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DEF_INSTANCE_IN(TopologyModule, Topology, "")
DEF_VAR(bool, UseBoundingTransform, false,"")
DEF_INSTANCE_STATE(TextureMesh, TextureMesh, "")
TopologyModule::Triangle Triangle
DEF_VAR(Real, UvScaleU, 9, "")
DEF_VAR(FilePath, NormalTexture, "", "")
void resetStates() override
DECLARE_TCLASS(CubeModel, TDataType)
DEF_VAR(FilePath, DiffuseTexture, "", "")
DEF_VAR(Real, UvScaleV, 9, "")
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25