#include <Cloth.h>
|
| Particle & | getParticle (int x, int y) |
| |
| const Particle & | getParticle (int x, int y) const |
| |
| Particle & | getParticleByIndex (int index) |
| |
| const Particle | getParticleByIndex (int index) const |
| |
| int | getSize () const |
| |
| std::vector< double > & | getHeightvals () |
| |
| | Cloth (const Vec3 &origin_pos, int num_particles_width, int num_particles_height, double step_x, double step_y, double smoothThreshold, double heightThreshold, int rigidness, double time_step) |
| |
| void | setheightvals (const std::vector< double > &heightvals) |
| |
| double | timeStep () |
| |
| void | addForce (const Vec3 &direction) |
| |
| void | terrainCollision () |
| |
| void | movableFilter () |
| |
| void | findUnmovablePoint (const std::vector< XY > &connected, const std::vector< double > &heightvals, std::vector< int > &edgePoints) |
| |
| void | handle_slop_connected (const std::vector< int > &edgePoints, const std::vector< XY > &connected, const std::vector< std::vector< int >> &neighbors, const std::vector< double > &heightvals) |
| |
| void | saveToFile (std::string path="") |
| |
| void | saveMovableToFile (std::string path="") |
| |
| ccMesh * | toMesh () const |
| | Converts the cloth to a CC mesh structure. More...
|
| |
◆ Cloth()
| Cloth::Cloth |
( |
const Vec3 & |
origin_pos, |
|
|
int |
num_particles_width, |
|
|
int |
num_particles_height, |
|
|
double |
step_x, |
|
|
double |
step_y, |
|
|
double |
smoothThreshold, |
|
|
double |
heightThreshold, |
|
|
int |
rigidness, |
|
|
double |
time_step |
|
) |
| |
References getParticle(), num_particles_height, num_particles_width, origin_pos, step_x, step_y, Vec3::x, x, Vec3::y, y, and Vec3::z.
◆ addForce()
| void Cloth::addForce |
( |
const Vec3 & |
direction | ) |
|
◆ findUnmovablePoint()
| void Cloth::findUnmovablePoint |
( |
const std::vector< XY > & |
connected, |
|
|
const std::vector< double > & |
heightvals, |
|
|
std::vector< int > & |
edgePoints |
|
) |
| |
◆ getHeightvals()
| std::vector<double>& Cloth::getHeightvals |
( |
| ) |
|
|
inline |
◆ getParticle() [1/2]
| Particle& Cloth::getParticle |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
◆ getParticle() [2/2]
| const Particle& Cloth::getParticle |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
inline |
◆ getParticleByIndex() [1/2]
| Particle& Cloth::getParticleByIndex |
( |
int |
index | ) |
|
|
inline |
◆ getParticleByIndex() [2/2]
| const Particle Cloth::getParticleByIndex |
( |
int |
index | ) |
const |
|
inline |
◆ getSize()
| int Cloth::getSize |
( |
| ) |
const |
|
inline |
◆ handle_slop_connected()
| void Cloth::handle_slop_connected |
( |
const std::vector< int > & |
edgePoints, |
|
|
const std::vector< XY > & |
connected, |
|
|
const std::vector< std::vector< int >> & |
neighbors, |
|
|
const std::vector< double > & |
heightvals |
|
) |
| |
◆ movableFilter()
| void Cloth::movableFilter |
( |
| ) |
|
◆ saveMovableToFile()
| void Cloth::saveMovableToFile |
( |
std::string |
path = "" | ) |
|
◆ saveToFile()
| void Cloth::saveToFile |
( |
std::string |
path = "" | ) |
|
◆ setheightvals()
| void Cloth::setheightvals |
( |
const std::vector< double > & |
heightvals | ) |
|
|
inline |
◆ terrainCollision()
| void Cloth::terrainCollision |
( |
| ) |
|
◆ timeStep()
| double Cloth::timeStep |
( |
| ) |
|
This is an important methods where the time is progressed one time step for the entire cloth. This includes calling satisfyConstraint() for every constraint, and calling timeStep() for all particles
issues/909
Referenced by CSF::do_filtering().
◆ toMesh()
| ccMesh * Cloth::toMesh |
( |
| ) |
const |
Converts the cloth to a CC mesh structure.
References ccHObject::addChild(), cloudViewer::PointCloudTpl< T >::addPoint(), ccMesh::addTriangle(), getSize(), num_particles_height, num_particles_width, Particle::pos, ccMesh::reserve(), ccPointCloud::reserve(), ccObject::setEnabled(), Vec3::x, x, Vec3::y, y, and Vec3::z.
Referenced by CSF::do_filtering().
◆ num_particles_height
| int Cloth::num_particles_height |
◆ num_particles_width
| int Cloth::num_particles_width |
◆ origin_pos
◆ step_x
◆ step_y
The documentation for this class was generated from the following files:
- /tmp/v394src/plugins/core/Standard/qCSF/include/Cloth.h
- /tmp/v394src/plugins/core/Standard/qCSF/src/Cloth.cpp