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

#include <Particle.h>

Collaboration diagram for Particle:

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
 

Detailed Description

Definition at line 19 of file Particle.h.

Constructor & Destructor Documentation

◆ Particle() [1/2]

Particle::Particle ( )
inline

Definition at line 58 of file Particle.h.

◆ Particle() [2/2]

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

Definition at line 78 of file Particle.h.

References old_pos, and pos.

Member Function Documentation

◆ addForce()

void Particle::addForce ( const Vec3 f)
inline

Definition at line 90 of file Particle.h.

◆ isMovable()

bool Particle::isMovable ( ) const
inline

◆ makeUnmovable()

void Particle::makeUnmovable ( )
inline

Definition at line 98 of file Particle.h.

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

◆ offsetPos()

void Particle::offsetPos ( const Vec3  v)
inline

Definition at line 94 of file Particle.h.

References pos.

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

◆ resetAcceleration()

void Particle::resetAcceleration ( )
inline

Definition at line 92 of file Particle.h.

◆ satisfyConstraintSelf()

void Particle::satisfyConstraintSelf ( int  constraintTimes)

Definition at line 39 of file Particle.cpp.

References doubleMove1, isMovable(), neighborsList, offsetPos(), pos, singleMove1, and Vec3::y.

◆ timeStep()

void Particle::timeStep ( )

Definition at line 13 of file Particle.cpp.

References DAMPING, old_pos, and pos.

Member Data Documentation

◆ c_pos

int Particle::c_pos

Definition at line 37 of file Particle.h.

◆ correspondingLidarPointList

std::vector<int> Particle::correspondingLidarPointList

Definition at line 48 of file Particle.h.

Referenced by Rasterization::RasterTerrain().

◆ isVisited

bool Particle::isVisited

Definition at line 33 of file Particle.h.

Referenced by Rasterization::findHeightValByNeighbor(), and Cloth::movableFilter().

◆ nearestPointHeight

double Particle::nearestPointHeight

◆ nearestPointIndex

std::size_t Particle::nearestPointIndex

Definition at line 50 of file Particle.h.

Referenced by Rasterization::RasterTerrain().

◆ neighborsList

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

Definition at line 44 of file Particle.h.

Referenced by Rasterization::findHeightValByNeighbor(), and satisfyConstraintSelf().

◆ old_pos

Vec3 Particle::old_pos

Definition at line 39 of file Particle.h.

Referenced by Particle(), and timeStep().

◆ pos

◆ pos_x

int Particle::pos_x

Definition at line 35 of file Particle.h.

Referenced by Rasterization::findHeightValByScanline().

◆ pos_y

int Particle::pos_y

Definition at line 36 of file Particle.h.

Referenced by Rasterization::findHeightValByScanline().

◆ tmpDist

double Particle::tmpDist

Definition at line 54 of file Particle.h.

Referenced by Rasterization::RasterTerrain().


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