ModelViewer 0.1
Template for CPP projects
Loading...
Searching...
No Matches
GeometryStructs.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Geometry.hpp
4** File description:
5** Geometry.hpp
6*/
7
8#ifndef MODELVIEWER_GEOMETRY_HPP
9#define MODELVIEWER_GEOMETRY_HPP
10
11namespace model_viewer::geometry {
12
16struct Vector3 {
18 float x;
20 float y;
22 float z;
23};
24
28struct FaceIndex {
30 int v = 0;
32 int vt = 0;
34 int vn = 0;
35};
36
42 float u;
44 float v;
45};
46
47} // namespace model_viewer::geometry
48
49#endif // MODELVIEWER_GEOMETRY_HPP
Definition ObjGeometry.cpp:10
Struct representing a face's indexes in an OBJ model.
Definition GeometryStructs.hpp:28
int vn
Normal vertice index.
Definition GeometryStructs.hpp:34
int v
Vertice index.
Definition GeometryStructs.hpp:30
int vt
Texture coordinate vertice index.
Definition GeometryStructs.hpp:32
Struct representing a texture coordinate in an OBJ model.
Definition GeometryStructs.hpp:40
float u
Horizontal axis.
Definition GeometryStructs.hpp:42
float v
Vertical axis.
Definition GeometryStructs.hpp:44
Struct representing a 3D Vector.
Definition GeometryStructs.hpp:16
float x
X axis.
Definition GeometryStructs.hpp:18
float y
Y axis.
Definition GeometryStructs.hpp:20
float z
Z axis.
Definition GeometryStructs.hpp:22