Files
solver/MbDCode/System.cpp
2023-05-02 10:22:37 -06:00

16 lines
412 B
C++

#include "System.h"
void MbD::System::addPart(std::shared_ptr<Part> part)
{
part->setSystem(*this);
parts.push_back(part);
}
MbD::System::System() {
parts = std::vector<std::shared_ptr<Part>>();
jointsMotions = std::vector<std::shared_ptr<Joint>>();
systemSolver = std::make_shared<SystemSolver>(*this);
//std::vector<std::shared_ptr<Part>> parts;
//std::vector<std::shared_ptr<Joint>> jointsMotions;
}