API Documentation
Loading...
Searching...
No Matches
Cloth Class Reference

#include <Cloth.h>

Collaboration diagram for Cloth:
[legend]

Public Member Functions

void addForce (const Vector< 3, fltp04 > direction)
 
void adjustParticleByNeighbor (Particle &p1, Particle &p2)
 
 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)
 
void fillHoles ()
 
Buffer< uint04findUnmovablePoint (Buffer< Vector< 2, uint04 > > connected)
 
uint04 get1DIndex (uint04 x, uint04 y) const
 
Vector< 2, uint04get2DIndex (uint04 index) const
 
const RGBColorgetColor (uint04 index)
 
Buffer< fltp04 > & getHeightvals ()
 
Vector< 3, fltp04getNormalAt (const Vector< 2, uint04 > &index) const
 
ParticlegetParticle (uint04 x, uint04 y)
 
const ParticlegetParticle (uint04 x, uint04 y) const
 
ParticlegetParticle1d (uint04 index)
 
const Buffer< Particle > & getParticles () const
 
uint04 getSize ()
 
void handle_slop_connected (const Buffer< uint04 > &edgePoints, const Buffer< Vector< 2, uint04 > > &connected, const Buffer< Buffer< uint04 > > &neibors)
 
void movableFilter ()
 
void setColor (uint04 index, RGBColor color)
 
void terrCollision ()
 
void timeStep ()
 

Public Attributes

Buffer< fltp04heightvals
 
Vertex< 3, fltp04origin_pos
 
Vector< 2, uint04size
 
fltp04 step_x
 
fltp04 step_y
 

Constructor & Destructor Documentation

◆ Cloth()

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 )

Member Function Documentation

◆ addForce()

void addForce ( const Vector< 3, fltp04 > direction)

◆ adjustParticleByNeighbor()

void adjustParticleByNeighbor ( Particle & p1,
Particle & p2 )

◆ fillHoles()

void fillHoles ( )

◆ findUnmovablePoint()

Buffer< uint04 > findUnmovablePoint ( Buffer< Vector< 2, uint04 > > connected)

◆ get1DIndex()

uint04 get1DIndex ( uint04 x,
uint04 y ) const
inline

◆ get2DIndex()

Vector< 2, uint04 > get2DIndex ( uint04 index) const
inline

◆ getColor()

const RGBColor & getColor ( uint04 index)
inline

◆ getHeightvals()

Buffer< fltp04 > & getHeightvals ( )
inline

◆ getNormalAt()

Vector< 3, fltp04 > getNormalAt ( const Vector< 2, uint04 > & index) const

◆ getParticle() [1/2]

Particle & getParticle ( uint04 x,
uint04 y )
inline

◆ getParticle() [2/2]

const Particle & getParticle ( uint04 x,
uint04 y ) const
inline

◆ getParticle1d()

Particle & getParticle1d ( uint04 index)
inline

◆ getParticles()

const Buffer< Particle > & getParticles ( ) const
inlinenodiscard

◆ getSize()

uint04 getSize ( )
inline

◆ handle_slop_connected()

void handle_slop_connected ( const Buffer< uint04 > & edgePoints,
const Buffer< Vector< 2, uint04 > > & connected,
const Buffer< Buffer< uint04 > > & neibors )

◆ movableFilter()

void movableFilter ( )

◆ setColor()

void setColor ( uint04 index,
RGBColor color )
inline

◆ terrCollision()

void terrCollision ( )

◆ timeStep()

void timeStep ( )

Member Data Documentation

◆ heightvals

Buffer<fltp04> heightvals

◆ origin_pos

Vertex<3, fltp04> origin_pos

◆ size

Vector<2, uint04> size

◆ step_x

fltp04 step_x

◆ step_y

fltp04 step_y

The documentation for this class was generated from the following file: