Loading...
Searching...
No Matches
MeshHelpers.hpp
1#pragma once
2#include <Threedim/TinyObj.hpp>
3#include <vcg/complex/algorithms/clean.h>
4#include <vcg/complex/algorithms/create/platonic.h>
5#include <vcg/complex/algorithms/update/normal.h>
6#include <vcg/complex/algorithms/update/texture.h>
7
8namespace Threedim
9{
10using namespace vcg;
11class TFace;
12class TVertex;
13
15 : public vcg::UsedTypes<vcg::Use<TVertex>::AsVertexType, vcg::Use<TFace>::AsFaceType>
16{
17};
18
20 : public Vertex<
21 TUsedTypes,
22 vertex::BitFlags,
23 vertex::Coord3f,
24 vertex::Normal3f,
25 vertex::TexCoord2f,
26 vertex::Mark>
27{
28};
29
30class TFace
31 : public Face<
32 TUsedTypes,
33 face::VertexRef,
34 face::Normal3f,
35 face::WedgeTexCoord2f,
36 face::BitFlags,
37 face::FFAdj>
38{
39};
40
41class TMesh : public vcg::tri::TriMesh<std::vector<TVertex>, std::vector<TFace>>
42{
43};
44
45void loadTriMesh(TMesh& mesh, std::vector<float>& complete, PrimitiveOutputs& outputs);
46}
Definition MeshHelpers.hpp:38
Definition MeshHelpers.hpp:42
Definition MeshHelpers.hpp:27
Definition TinyObj.hpp:82
Definition MeshHelpers.hpp:16
Definition TinyObj.hpp:18