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
Scene.h
#pragma once
#ifndef __Scene__
#define __Scene__
#include <vector>
#include <memory>
#include <string>
#define EIGEN_DONT_ALIGN_STATICALLY
#include <Eigen/Dense>
#include "boxTriCollision.h"
class Cloth;
class Obstacles;
class Constraints;
class Shape;
class GeneralizedSolver;
#ifdef EOLC_ONLINE
class MatrixStack;
class Program;
#endif // EOLC_ONLINE
class Scene
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Scene();
virtual ~Scene() {};
void load(const std::string &RESOURCE_DIR);
void init(const bool online, const bool exportObjs);
void reset();
void step();
void partialStep();
#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;
#endif // EOLC_ONLINE
double h;
Eigen::Vector3d grav;
bool EOLon;
int part;
std::shared_ptr<GeneralizedSolver> GS;
std::shared_ptr<Cloth> cloth;
std::shared_ptr<Obstacles> obs;
std::vector<std::shared_ptr<btc::Collision> > cls;
private:
double t;
};
#endif
Computing file changes ...