Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
MeshTriangle Class Reference

#include <mapblock_mesh.h>

Public Member Functions

void updateAttributes ()
 
v3f getNormal () const
 

Public Attributes

scene::SMeshBuffer * buffer
 
u16 p1
 
u16 p2
 
u16 p3
 
v3f centroid
 
float areaSQ
 

Member Function Documentation

◆ getNormal()

v3f MeshTriangle::getNormal ( ) const
inline

References buffer, p1, p2, and p3.

Referenced by MapBlockBspTree::buildTree().

+ Here is the caller graph for this function:

◆ updateAttributes()

void MeshTriangle::updateAttributes ( )
inline

References areaSQ, buffer, centroid, p1, p2, and p3.

Referenced by MapBlockMesh::MapBlockMesh().

+ Here is the caller graph for this function:

Member Data Documentation

◆ areaSQ

float MeshTriangle::areaSQ

◆ buffer

scene::SMeshBuffer* MeshTriangle::buffer

◆ centroid

v3f MeshTriangle::centroid

◆ p1

u16 MeshTriangle::p1

◆ p2

u16 MeshTriangle::p2

◆ p3

u16 MeshTriangle::p3

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