9#ifndef model_SecondPhase_cpp_
10#define model_SecondPhase_cpp_
24 const std::map<
const GlidePlaneBase*,std::shared_ptr<GammaSurface>>& _gsMap,
38 const auto gammaIter(
gsMap.find(gpb));
39 if(gammaIter!=
gsMap.end())
42 if(std::fabs(bL(2))>FLT_EPSILON)
44 throw std::runtime_error(
"SLIP VECTOR NOT ON GlidePlaneBase");
46 return gammaIter->second->operator()(bL.template segment<2>(0));
static std::string greenBoldColor
static std::string defaultColor
const Eigen::Matrix3d G2L
std::shared_ptr< GammaSurface > gammaSurface(const size_t &) const
const PlaneNormalContainerType & planes
SecondPhase(const std::string &, const std::map< const GlidePlaneBase *, std::shared_ptr< GammaSurface > > &, const PlaneNormalContainerType &)
const Eigen::Matrix< double, dim, 1 > VectorDim
const std::map< const GlidePlaneBase *, std::shared_ptr< GammaSurface > > gsMap
double misfitEnergy(const VectorDim &s, const GlidePlaneBase *const gpb) const
std::map< size_t, std::shared_ptr< GlidePlaneBase > > PlaneNormalContainerType