MySources/reducedmodel.cpp

25 lines
954 B
C++

#include "reducedmodel.hpp"
void ReducedModel::constructReducedModelBaseTriangleGeometry()
{
std::vector<vcg::Point3d> vertices{{0, 0, 0},
{-0.1666666666666666, -0.2886751345948129, 0},
{-0.3333333333333333, -0.5773502691896257, 0},
{0, -0.8660254037844387, 0},
{0.3333333333333333, -0.5773502691896258, 0},
{0.1666666666666666, -0.288675134594813, 0},
{0, -0.3333333, 0}};
std::vector<vcg::Point2i> edges{{0, 3}};
add(vertices, edges);
updateBaseTriangle();
interfaceNodeIndex = 3;
vcg::tri::UpdateTopology<PatternGeometry>::VertexEdge(*this);
vcg::tri::UpdateTopology<PatternGeometry>::EdgeEdge(*this);
}
ReducedModel::ReducedModel()
{
constructReducedModelBaseTriangleGeometry();
}