Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Vertex Struct Reference

Vertex data for a single vertex in a mesh. More...

#include <Mesh.h>

Public Member Functions

bool operator== (const Vertex &other) const
 Equality comparison for vertex deduplication.
 

Data Fields

glm::vec3 pos
 Position in local/model space.
 
glm::vec3 normal
 Surface normal.
 

Detailed Description

Vertex data for a single vertex in a mesh.

Contains geometric and shading information for rendering.

Definition at line 13 of file Mesh.h.

Member Function Documentation

◆ operator==()

bool Vertex::operator== ( const Vertex other) const
inline

Equality comparison for vertex deduplication.

Parameters
otherThe vertex to compare against
Returns
true if position and normal are identical

Definition at line 22 of file Mesh.h.

Field Documentation

◆ normal

glm::vec3 Vertex::normal

Surface normal.

Definition at line 15 of file Mesh.h.

◆ pos

glm::vec3 Vertex::pos

Position in local/model space.

Definition at line 14 of file Mesh.h.


The documentation for this struct was generated from the following file: