MCPcopy Create free account
hub / github.com/PDAL/PDAL / addForce

Method addForce

filters/private/csf/Cloth.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void Cloth::addForce(const Vec3 direction) {
128 for (std::size_t i = 0; i < particles.size(); i++) {
129 particles[i].addForce(direction);
130 }
131 saveToFile("force-nodes.txt");
132}
133
134void Cloth::terrCollision() {
135 int particleCount = static_cast<int>(particles.size());

Callers 1

do_filteringMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected