PeriDyno 1.0.0
Loading...
Searching...
No Matches
Turning.h
Go to the documentation of this file.
1
16
17#pragma once
21
22#include "Topology/PolygonSet.h"
23
24#include "Field/Curve.h"
25
26namespace dyno
27{
28
29
30 template<typename TDataType>
31 class TurningModel : public ParametricModel<TDataType>
32 {
34
35 public:
36 typedef typename TDataType::Real Real;
37 typedef typename TDataType::Coord Coord;
38
40
41 public:
42 DEF_VAR(unsigned, Columns, 24, "Turning Columns");
43
44 DEF_VAR(unsigned, EndSegment, 1, "Turning EndSegment");
45
46 DEF_VAR(Real, Radius, 0, "Turning radius");
47
49
51
53
54 DEF_VAR(bool, ReverseNormal, false, "ReverseNormal");
55
56 DEF_VAR(bool, UseRamp, false, "");
57
58 DEF_VAR(Curve, Curve, Curve::CurveMode::Open, "");
59
60 protected:
61 void resetStates() override;
62
63 private:
64 void varChanged();
65 };
66
67
68
70}
#define DEF_INSTANCE_IN(T, name, desc)
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
a class to store polygon whose vertex number is greater or equal than 3
Definition PolygonSet.h:29
DEF_INSTANCE_STATE(PolygonSet< TDataType >, PolygonSet, "")
DEF_VAR(unsigned, Columns, 24, "Turning Columns")
DEF_VAR(unsigned, EndSegment, 1, "Turning EndSegment")
DECLARE_TCLASS(TurningModel, TDataType)
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
TDataType::Coord Coord
Definition Turning.h:37
void resetStates() override
Definition Turning.cpp:61
DEF_VAR(Real, Radius, 0, "Turning radius")
TDataType::Real Real
Definition Turning.h:36
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
IMPLEMENT_TCLASS(Steer, TDataType)