60#define MAX_PARTICLE_FOR_POSTPROCESSIN 50
71 uint04 constraint_iterations;
87 return particles[y *
size[
X] + x];
90 return particles[y *
size[
X] + x];
94 return m_colors[index];
98 m_colors[index] = color;
102 return y *
size[
X] + x;
121 return particles[index];
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Particle & getParticle(uint04 x, uint04 y)
Definition Cloth.h:86
Buffer< fltp04 > & getHeightvals()
Definition Cloth.h:116
Vector< 2, uint04 > size
Definition Cloth.h:85
Buffer< uint04 > findUnmovablePoint(Buffer< Vector< 2, uint04 > > connected)
Definition Cloth.cpp:496
Particle & getParticle1d(uint04 index)
Definition Cloth.h:120
void handle_slop_connected(const Buffer< uint04 > &edgePoints, const Buffer< Vector< 2, uint04 > > &connected, const Buffer< Buffer< uint04 > > &neibors)
Definition Cloth.cpp:583
Vector< 3, fltp04 > getNormalAt(const Vector< 2, uint04 > &index) const
Definition Cloth.cpp:26
Cloth(const Vector< 3, fltp04 > &origin_pos, const Vector< 2, uint04 > &size, const Vector< 2, fltp04 > &step, fltp04 smoothThreshold, fltp04 heightThreshold, uint04 rigidness, fltp04 time_step, bool use_colors)
Definition Cloth.cpp:54
void setColor(uint04 index, RGBColor color)
Definition Cloth.h:96
Vector< 2, uint04 > get2DIndex(uint04 index) const
Definition Cloth.h:104
void timeStep()
Definition Cloth.cpp:114
void fillHoles()
Definition Cloth.cpp:362
void movableFilter()
Definition Cloth.cpp:226
Buffer< fltp04 > heightvals
Definition Cloth.h:84
const Buffer< Particle > & getParticles() const
Definition Cloth.h:123
Vertex< 3, fltp04 > origin_pos
Definition Cloth.h:82
fltp04 step_y
Definition Cloth.h:83
uint04 get1DIndex(uint04 x, uint04 y) const
Definition Cloth.h:100
void adjustParticleByNeighbor(Particle &p1, Particle &p2)
Definition Cloth.cpp:94
void addForce(const Vector< 3, fltp04 > direction)
Definition Cloth.cpp:200
const RGBColor & getColor(uint04 index)
Definition Cloth.h:92
fltp04 step_x
Definition Cloth.h:83
uint04 getSize()
Definition Cloth.h:111
void terrCollision()
Definition Cloth.cpp:212
const Particle & getParticle(uint04 x, uint04 y) const
Definition Cloth.h:89
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:152
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:115
@ Y
Definition BaseValues.hpp:197
@ X
Definition BaseValues.hpp:195