MBDyn spherical hinge (#33)
* moved misc files to project resource * MBDyn Sperical Hinge * Werner compil warning (#32) * Replace int by size_t in for loops. * Various dtor missing and some other warning fixes. * fixed size_t vs int * fixed size_t vs int --------- Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com> Co-authored-by: Aik-Siong Koh <askoh@askoh.com> * moved misc files to project resource * MBDyn Sperical Hinge * gravity fix --------- Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com> Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,7 @@ void MbD::MBDynControlData::parseMBDyn(std::vector<std::string>& lines)
|
||||
readStructuralNodes(lines);
|
||||
readRigidBodies(lines);
|
||||
readJoints(lines);
|
||||
readGravity(lines);
|
||||
assert(lines.size() == 2);
|
||||
}
|
||||
|
||||
@@ -131,3 +132,12 @@ void MbD::MBDynControlData::readJoints(std::vector<std::string>& lines)
|
||||
iss >> joints;
|
||||
lines.erase(it);
|
||||
}
|
||||
|
||||
void MbD::MBDynControlData::readGravity(std::vector<std::string>& lines)
|
||||
{
|
||||
//gravity;
|
||||
std::vector<std::string> tokens{ "gravity" };
|
||||
auto it = findLineWith(lines, tokens);
|
||||
if (it == lines.end()) return;
|
||||
lines.erase(it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user