https://github.com/sueda/eol-cloth
Revision 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC, committed by GitHub on 11 September 2018, 15:17:28 UTC
1 parent 3c3ef84
Tip revision: 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC
Create LICENSE
Create LICENSE
Tip revision: 28fad2e
Obstacles.h
#pragma once
#ifndef __Obstacles__
#define __Obstacles__
#define EIGEN_DONT_ALIGN_STATICALLY
#include <Eigen/Dense>
#include <vector>
#include <memory>
#include "BrenderManager.h"
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);
void addExport(BrenderManager *brender);
#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 ...