46 Eigen::Vector3d fasteningPos;
55 std::string materialName;
61 materialName =
"Trawl/SteelWire";
81 int AddLine(
double length,
const double*
const fasteningpos);
90 void Update(
const double*
const F,
double*
const posOut);
101 void CalcIterativePos(
const double*
const F,
double*
const posOut,
int maxNumIter = 500,
double expectedLengthToGo = 3.0,
102 double tolerance = 0.00001);
141#ifdef FH_VISUALIZATION
143 virtual void RenderInit(Ogre::Root*
const ogreRoot, Ogre::SceneManager* m_sceneMgr, std::string m_simObjectName);
146 virtual void RenderUpdate(std::vector<const double*>& aadPos,
const double adPosCollectingPoint[3]);
151 void CalcForOneLine(
const Eigen::Vector3d& Force,
const Eigen::Vector3d& ForceDir,
double*
const posOut);
154 void CalcForTwoLines(
const Eigen::Vector3d& Force,
const Eigen::Vector3d& ForceDir,
double*
const posOut);
157 void CalcForThreeLines(
const Eigen::Vector3d&,
const Eigen::Vector3d& ForceDir,
double*
const posOut);
166 void CalcForOneActive(
int index,
const Eigen::Vector3d&,
const Eigen::Vector3d& pos,
double*
const posOut);
169 void CalcForTwoActive(
int index1,
int index2,
const Eigen::Vector3d& Force, Eigen::Vector3d pos,
double*
const posOut);
172 void SetPosition(
double*
const posOut,
const Eigen::Vector3d& pos);
180 std::vector<LineDef> m_lines;
181 std::vector<Eigen::Vector3d> m_lineForces;
183 double m_maxLineForce;
187#ifdef CROWFOOTMATH_DEBUG_RENDERING
188 Eigen::Vector3f DEBUG_poss0;
189 Eigen::Vector3f DEBUG_poss1;
190 Eigen::Vector3f DEBUG_ForceDir;
193#ifdef FH_VISUALIZATION
194 std::vector<std::unique_ptr<SCableRenderSpec>> m_RenderSpecs;
195 std::vector<Ogre::ManualObject*> m_RenderObjects;
197 Ogre::SceneNode* m_lineSceneNode;
200# ifdef CROWFOOTMATH_DEBUG_RENDERING
201 Ogre::Entity* m_renderSphere[2];
202 Ogre::SceneNode* m_renderNodeSphere[2];
203 CDynamicLines* m_lines;
204 Ogre::SceneNode* m_debugLineSceneNode;