PeriDyno 1.0.0
Loading...
Searching...
No Matches
Extrude.h
Go to the documentation of this file.
1
16
17#pragma once
21
22#include "Field/Curve.h"
23
24namespace dyno
25{
26 template<typename TDataType>
27 class ExtrudeModel : virtual public ParametricModel<TDataType>
28 {
30
31 public:
32 typedef typename TDataType::Real Real;
33 typedef typename TDataType::Coord Coord;
34
36
37 public:
38
39 DEF_VAR(unsigned, Row, 4, "Row");
40
41 DEF_VAR(Real, Height, 1, "Height");
42
43 DEF_VAR(bool, ReverseNormal, false, "ReverseNormal");
44
46
48
50
51
52
53 protected:
54 void resetStates() override;
55
56 void varChanged();
57 };
58
60}
61
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
void resetStates() override
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
DEF_VAR(Real, Height, 1, "Height")
DECLARE_TCLASS(ExtrudeModel, TDataType)
DEF_VAR(bool, ReverseNormal, false, "ReverseNormal")
DEF_VAR(unsigned, Row, 4, "Row")
DEF_INSTANCE_IN(PointSet< TDataType >, PointSet, "")
TDataType::Real Real
Definition Extrude.h:32
TDataType::Coord Coord
Definition Extrude.h:33
DEF_VAR(Curve, Curve, Curve::CurveMode::Close, "")
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25