1 Star 0 Fork 2

FantasyVR/position-based-dynamic-GPU

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DirectPositionBasedSolverForStiffRodsInterface.h 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
李开诚 提交于 2020-06-04 13:39 +08:00 . first commit
#ifndef DIRECT_POSITION_BASED_SOLVER_FOR_STIFF_RODS_INTERFACE
#define DIRECT_POSITION_BASED_SOLVER_FOR_STIFF_RODS_INTERFACE
#include "Common/Common.h"
namespace PBD{
// Implementation of "Direct Position-Based Solver for Stiff Rods" paper
// (https://animation.rwth-aachen.de/publication/0557/)
//
// Implemented by:
//
// Crispin Deul
// Graduate School CE
// Technische Universitt Darmstadt
//
// deul[at] gsc.tu-darmstadt.de
//
class RodSegment
{
public:
virtual bool isDynamic() = 0;
virtual Real Mass() = 0;
virtual const Vector3r & InertiaTensor() = 0;
virtual const Vector3r & Position() = 0;
virtual const Quaternionr & Rotation() = 0;
};
class RodConstraint
{
public:
using Vector6r = Eigen::Matrix<Real, 6, 1, Eigen::DontAlign>;
virtual unsigned int segmentIndex(unsigned int i) = 0;
virtual Eigen::Matrix<Real, 3, 4, Eigen::DontAlign> & getConstraintInfo() = 0;
virtual Real getAverageSegmentLength() = 0;
virtual Vector3r &getRestDarbouxVector() = 0;
virtual Vector3r &getStiffnessCoefficientK() = 0;
virtual Vector3r & getStretchCompliance() = 0;
virtual Vector3r & getBendingAndTorsionCompliance() = 0;
};
}
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fantasyvr/position-based-dynamic-GPU.git
git@gitee.com:fantasyvr/position-based-dynamic-GPU.git
fantasyvr
position-based-dynamic-GPU
position-based-dynamic-GPU
master

搜索帮助