Stellarium  0.19.3
Data Fields
StelOBJ::MaterialGroup Struct Reference

Represents a bunch of faces following after each other that use the same material.

#include <StelOBJ.hpp>

Data Fields

int startIndex
 The starting index in the index list.
 
int indexCount
 The amount of indices after the start index which belong to this material group.
 
int objectIndex
 The index of the object this group belongs to.
 
int materialIndex
 The index of the material that this group uses.
 
Vec3f centroid
 The centroid of this group at load time. More...
 
AABBox boundingbox
 The AABB of this group at load time.
 

Field Documentation

◆ centroid

Vec3f StelOBJ::MaterialGroup::centroid
Note
This is a very simple centroid calculation which simply accumulates all vertex positions and divides by their number. Most notably, it does not take vertex density into account, so this may not correspond to the geometric center/center of mass of the object