ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Particle Class Reference

#include <Particle.h>

Collaboration diagram for Particle:
[legend]

Public Member Functions

 Particle ()
 
 Particle (Vec3 posVec, double time_step)
 
void timeStep ()
 
bool isMovable () const
 
void addForce (const Vec3 &f)
 
void resetAcceleration ()
 
void offsetPos (const Vec3 v)
 
void makeUnmovable ()
 
void satisfyConstraintSelf (int constraintTimes)
 

Public Attributes

bool isVisited
 
int pos_x
 
int pos_y
 
int c_pos
 
Vec3 pos
 
Vec3 old_pos
 
std::vector< Particle * > neighborsList
 
std::vector< int > correspondingLidarPointList
 
std::size_t nearestPointIndex
 
double nearestPointHeight
 
double tmpDist
 

Constructor & Destructor Documentation

◆ Particle() [1/2]

Particle::Particle ( )
inline

◆ Particle() [2/2]

Particle::Particle ( Vec3  posVec,
double  time_step 
)
inline

References old_pos, and pos.

Member Function Documentation

◆ addForce()

void Particle::addForce ( const Vec3 &  f)
inline

◆ isMovable()

bool Particle::isMovable ( ) const
inline

◆ makeUnmovable()

void Particle::makeUnmovable ( )
inline

◆ offsetPos()

void Particle::offsetPos ( const Vec3  v)
inline

References pos.

Referenced by satisfyConstraintSelf(), and Cloth::terrainCollision().

◆ resetAcceleration()

void Particle::resetAcceleration ( )
inline

◆ satisfyConstraintSelf()

void Particle::satisfyConstraintSelf ( int  constraintTimes)

◆ timeStep()

void Particle::timeStep ( )

References DAMPING, old_pos, and pos.

Member Data Documentation

◆ c_pos

int Particle::c_pos

◆ correspondingLidarPointList

std::vector<int> Particle::correspondingLidarPointList

◆ isVisited

bool Particle::isVisited

◆ nearestPointHeight

◆ nearestPointIndex

std::size_t Particle::nearestPointIndex

◆ neighborsList

std::vector<Particle*> Particle::neighborsList

◆ old_pos

Vec3 Particle::old_pos

Referenced by Particle(), and timeStep().

◆ pos

◆ pos_x

int Particle::pos_x

◆ pos_y

int Particle::pos_y

◆ tmpDist

double Particle::tmpDist

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