Files
j3ml/include/J3ML/Geometry/TriangleMesh.hpp
josh bf794ce092
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m37s
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 29s
Sending up work
2024-10-23 14:16:41 -04:00

32 lines
683 B
C++

#pragma once
#include <vector>
#include <J3ML/LinearAlgebra.hpp>
#include <J3ML/Geometry/Shape.hpp>
#include <J3ML/Geometry/Forward.hpp>
namespace J3ML::Geometry
{
class TriangleMesh : public Shape
{
public:
/// Default constructor for a triangle mesh.
TriangleMesh(int expectedPolygonCount = 1000);
public:
std::vector<Vector3> Vertices;
std::vector<Vector3> Normals;
std::vector<Vector3> UVs;
std::vector<u64> Indices;
std::vector<float> GenerateVertexList();
//std::vector<Triangle> GenerateTriangleList();
public:
private:
//std::vector<Triangle> cachedTriangleList;
};
}