summaryrefslogtreecommitdiff
path: root/assetFactory/modelFactoryMesh.cpp
blob: f9ee6a0e241f8c04e828bab1fedde73788255511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "modelFactoryMesh.h"

ModelFactoryMesh::ModelFactoryMesh()
{
	add_property(smoothFaceProperty);
	add_property(nameFaceProperty);
}

std::pair<std::string, OpenMesh::FaceHandle>
ModelFactoryMesh::add_namedFace(std::string name, std::vector<OpenMesh::VertexHandle> p)
{
	const auto handle = add_face(std::move(p));
	property(nameFaceProperty, handle) = name;
	return std::make_pair(name, handle);
}