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
conversions.cpp
#include "conversions.h"
#include "external\ArcSim\vectors.hpp"
using namespace Eigen;
Vec2 e2v(const Vector2d v)
{
return Vec2(v(0), v(1));
}
Vec3 e2v(const Vector3d v)
{
return Vec3(v(0), v(1), v(2));
}
Vector2d v2e(const Vec2 v)
{
return Vector2d(v[0], v[1]);
}
Vector2d v322e(const Vec3 v)
{
return Vector2d(v[0], v[1]);
}
Vector3d v2e(const Vec3 v)
{
return Vector3d(v[0], v[1], v[2]);
}
Computing file changes ...