PeriDyno 1.0.0
Loading...
Searching...
No Matches
EditableMesh.h
Go to the documentation of this file.
1#pragma once
2#include "Node.h"
4
6#include "Topology/TriangleSet.h"
7
9
10namespace dyno
11{
12
13
14 template<typename TDataType>
15 class EditableMesh : public PolygonSetToTriangleSetNode<TDataType>
16 {
18 public:
19 typedef typename TDataType::Real Real;
20 typedef typename TDataType::Coord Coord;
21
23
24 std::string caption() override { return "EditableMesh"; }
25
27
29
30 DEF_ARRAYLIST_STATE(Vec3f,VertexNormal, DeviceType::GPU,"");
31
32 DEF_ARRAYLIST_STATE(Vec3f,TriangleNormal, DeviceType::GPU, "");
33
34 DEF_ARRAY_STATE(Vec3f, PolygonNormal, DeviceType::GPU, "");
35
36
37
38 protected:
39 void resetStates() override ;
40
41
42 private:
43
44
45
46 };
47
49}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
DEF_ARRAYLIST_STATE(Vec3f, TriangleNormal, DeviceType::GPU, "")
DEF_ARRAY_STATE(Vec3f, PolygonNormal, DeviceType::GPU, "")
DEF_INSTANCE_IN(PolygonSet< TDataType >, PolygonSet, "")
TDataType::Coord Coord
void resetStates() override
DEF_ARRAYLIST_STATE(Vec3f, VertexNormal, DeviceType::GPU,"")
TDataType::Real Real
std::string caption() override
Return the caption.
a class to store polygon whose vertex number is greater or equal than 3
Definition PolygonSet.h:29
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Vector< float, 3 > Vec3f
Definition Vector3D.h:93