Files
solver/MbDCode/PlanarJoint.cpp
2023-07-16 22:00:07 -06:00

28 lines
553 B
C++

#include "PlanarJoint.h"
#include "CREATE.h"
#include "System.h"
using namespace MbD;
MbD::PlanarJoint::PlanarJoint()
{
}
MbD::PlanarJoint::PlanarJoint(const char* str)
{
}
void MbD::PlanarJoint::initializeGlobally()
{
if (constraints->empty())
{
this->createInPlaneConstraint();
addConstraint(CREATE<DirectionCosineConstraintIJ>::ConstraintWith(frmI, frmJ, 2, 0));
addConstraint(CREATE<DirectionCosineConstraintIJ>::ConstraintWith(frmI, frmJ, 2, 1));
this->root()->hasChanged = true;
}
else {
InPlaneJoint::initializeGlobally();
}
}