diff --git a/reducedmodel.cpp b/reducedmodel.cpp new file mode 100644 index 0000000..eef2052 --- /dev/null +++ b/reducedmodel.cpp @@ -0,0 +1,36 @@ +#include "reducedmodel.hpp" + +void ReducedModel::constructReducedModelBaseTriangleGeometry() +{ + vcg::tri::Allocator::AddVertex(*this, CoordType{0, 0, 0}, DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, + CoordType{-0.1666666666666666, + -0.2886751345948129, + 0}, + DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, + CoordType{-0.3333333333333333, + -0.5773502691896257, + 0}, + DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, + CoordType{0, -0.8660254037844387, 0}, + DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, + CoordType{0.3333333333333333, + -0.5773502691896258, + 0}, + DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, + CoordType{0.1666666666666666, + -0.288675134594813, + 0}, + DefaultNormal); + vcg::tri::Allocator::AddVertex(*this, CoordType{0, -0.3333333, 0}, DefaultNormal); + vcg::tri::Allocator::AddEdge(*this, 0, 3); +} + +ReducedModel::ReducedModel() +{ + constructReducedModelBaseTriangleGeometry(); +}