Files
j3ml/include/J3ML/Geometry/TriangleMesh.h
josh 9253cfc8c7
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m13s
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 19s
Fixed several recursive header issues, refactored Math lib, began implementing core mathematical functions as wrappers around stdmath, will implement SSE and lookup tables later.
2024-07-05 16:13:13 -04:00

33 lines
736 B
C++

#pragma once
#include <vector>
#include <J3ML/LinearAlgebra/Common.h>
#include <J3ML/Geometry/Common.h>
#include <J3ML/J3ML.h>
using namespace J3ML::LinearAlgebra;
namespace J3ML::Geometry
{
class TriangleMesh
{
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();
private:
std::vector<float> cachedVertexList;
//std::vector<Triangle> cachedTriangleList;
};
}