https://github.com/sueda/eol-cloth
Revision 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC, committed by Weidner on 13 July 2018, 15:37:58 UTC
1 parent db932cf
Tip revision: 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Tip revision: 2323d9f
Obstacles.h
#pragma once
#ifndef __Obstacles__
#define __Obstacles__
#define EIGEN_DONT_ALIGN_STATICALLY
#include <Eigen/Dense>
#include <vector>
#include <memory>
class Points;
class Box;
class Shape;
#ifdef EOLC_ONLINE
class MatrixStack;
class Program;
#endif // EOLC_ONLINE
class Obstacles
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Obstacles();
virtual ~Obstacles() {};
int num_boxes;
double cdthreshold;
std::shared_ptr<Points> points;
std::vector<std::shared_ptr<Box> > boxes;
std::vector<std::shared_ptr<Shape> > shapes;
void load(const std::string &RESOURCE_DIR);
void step(double h);
#ifdef EOLC_ONLINE
void draw(std::shared_ptr<MatrixStack> MV, const std::shared_ptr<Program> p) const;
void drawSimple(std::shared_ptr<MatrixStack> MV, const std::shared_ptr<Program> p) const;
void init();
#endif // EOLC_ONLINE
private:
};
#endif
Computing file changes ...