Atoms Crowd  4.1.0
Mesh.impl.h
1 // ===========================================================================
2 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
3 //
4 // Use of this software is subject to the terms of the Toolchefs license
5 // agreement provided at the time of installation or download, or which
6 // otherwise accompanies this software in either electronic or hard copy form.
7 // ===========================================================================
8 
9 namespace AtomsUtils
10 {
11  std::vector<AtomsMath::Vector3f>& Mesh::points()
12  {
13  return m_points;
14  }
15 
16  const std::vector<AtomsMath::Vector3f>& Mesh::points() const
17  {
18  return m_points;
19  }
20 
21  std::vector<AtomsMath::Vector3f>& Mesh::normals()
22  {
23  return m_normal;
24  }
25 
26  const std::vector<AtomsMath::Vector3f>& Mesh::normals() const
27  {
28  return m_normal;
29  }
30 
31  std::vector<unsigned int>& Mesh::indices()
32  {
33  return m_indices;
34  }
35 
36  const std::vector<unsigned int>& Mesh::indices() const
37  {
38  return m_indices;
39  }
40 
41  inline std::vector<unsigned int>& Mesh::vertexCount()
42  {
43  return m_vertexCount;
44  }
45 
46  inline const std::vector<unsigned int>& Mesh::vertexCount() const
47  {
48  return m_vertexCount;
49  }
50 
51  std::vector<AtomsMath::Vector2f>& Mesh::uvs()
52  {
53  return m_uvs;
54  }
55 
56  const std::vector<AtomsMath::Vector2f>& Mesh::uvs() const
57  {
58  return m_uvs;
59  }
60 
61  unsigned int Mesh::numberOfFaces() const
62  {
63  return static_cast<unsigned int>(m_vertexCount.size());
64  }
65 
66  unsigned int Mesh::numberOfVertices() const
67  {
68  return static_cast<unsigned int>(m_points.size());
69  }
70 
71  std::vector<AtomsMath::Vector3f>& Mesh::jointWeights()
72  {
73  return m_jointWeights;
74  }
75 
76  const std::vector<AtomsMath::Vector3f>& Mesh::jointWeights() const
77  {
78  return m_jointWeights;
79  }
80 
81  std::vector<AtomsMath::Vector3i>& Mesh::jointIndices()
82  {
83  return m_jointIndices;
84  }
85 
86  const std::vector<AtomsMath::Vector3i>& Mesh::jointIndices() const
87  {
88  return m_jointIndices;
89  }
90 
92  std::vector<Mesh::UVData>& Mesh::uvSets()
93  {
94  return m_uvSets;
95  }
96 
98  inline const std::vector<Mesh::UVData>& Mesh::uvSets() const
99  {
100  return m_uvSets;
101  }
102 
103 
104 }
AtomsUtils::Mesh::jointWeights
std::vector< AtomsMath::Vector3f > & jointWeights()
Get the skin joint weights.
Definition: Mesh.impl.h:71
AtomsUtils::Mesh::numberOfFaces
unsigned int numberOfFaces() const
Get number of faces.
Definition: Mesh.impl.h:61
AtomsUtils
AtomsCore namespace.
Definition: Base64.h:13
AtomsUtils::Mesh::vertexCount
std::vector< unsigned int > & vertexCount()
Get Vertex count.
Definition: Mesh.impl.h:41
AtomsUtils::Mesh::jointIndices
std::vector< AtomsMath::Vector3i > & jointIndices()
Get skin joint indices.
Definition: Mesh.impl.h:81
AtomsUtils::Mesh::indices
std::vector< unsigned int > & indices()
Get point indices.
Definition: Mesh.impl.h:31
AtomsUtils::Mesh::uvs
std::vector< AtomsMath::Vector2f > & uvs()
Get uvs.
Definition: Mesh.impl.h:51
AtomsUtils::Mesh::points
std::vector< AtomsMath::Vector3f > & points()
Get point positions.
Definition: Mesh.impl.h:11
AtomsUtils::Mesh::uvSets
std::vector< UVData > & uvSets()
Get uv sets.
Definition: Mesh.impl.h:92
AtomsUtils::Mesh::numberOfVertices
unsigned int numberOfVertices() const
Get number of vertices.
Definition: Mesh.impl.h:66
AtomsUtils::Mesh::normals
std::vector< AtomsMath::Vector3f > & normals()
Get point normal (normal per face per vertex)
Definition: Mesh.impl.h:21