PeriDyno 1.0.0
Loading...
Searching...
No Matches
Sweep.h
Go to the documentation of this file.
1
16
17#pragma once
19
22
23#include "Field/Ramp.h"
24
25namespace dyno
26{
27
28
29 template<typename TDataType>
30 class SweepModel : public ParametricModel<TDataType>
31 {
33
34 public:
35 typedef typename TDataType::Real Real;
36 typedef typename TDataType::Coord Coord;
37
38 SweepModel();
39
40 public:
41
42 DEF_VAR(Real, Radius, 0.6, "Cylinder radius");
43
45
46 DEF_VAR(bool, ReverseNormal, false, "ReverseNormal");
47
48 DEF_VAR(bool, DisplayPoints, false, "DisplayPoints");
49
50 DEF_VAR(bool, DisplayWireframe, false, "DisplayWireframe");
51
52 DEF_VAR(bool, DisplaySurface, true, "DisplaySurface");
53
55
57
59
60
61 protected:
62 void resetStates() override;
63
64 void varChanged();
65
66 void displayChanged();
67
69
70 float currentIndex = 0;
71 float totalIndex = 0;
72 };
73
74
75
77}
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
DEF_VAR(bool, DisplaySurface, true, "DisplaySurface")
void displayChanged()
Definition Sweep.cpp:279
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
Vec3f RealScale()
Definition Sweep.cpp:266
float totalIndex
Definition Sweep.h:71
DEF_VAR(Real, Radius, 0.6, "Cylinder radius")
DECLARE_TCLASS(SweepModel, TDataType)
DEF_VAR(bool, DisplayPoints, false, "DisplayPoints")
DEF_VAR(bool, DisplayWireframe, false, "DisplayWireframe")
void resetStates() override
Definition Sweep.cpp:63
TDataType::Real Real
Definition Sweep.h:35
DEF_VAR(Ramp, CurveRamp, Ramp::Direction::x, "")
void varChanged()
Definition Sweep.cpp:71
float currentIndex
Definition Sweep.h:70
DEF_VAR(bool, ReverseNormal, false, "ReverseNormal")
DEF_INSTANCE_IN(PointSet< TDataType >, Spline, "")
DEF_INSTANCE_IN(PointSet< TDataType >, Curve, "")
TDataType::Coord Coord
Definition Sweep.h:36
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Vector< float, 3 > Vec3f
Definition Vector3D.h:93