Stellarium  0.90.0
List of all members | Public Attributes
StelOBJ::MaterialGroup Struct Reference

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

#include <StelOBJ.hpp>

+ Collaboration diagram for StelOBJ::MaterialGroup:

Public Attributes

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

Detailed Description

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

Definition at line 142 of file StelOBJ.hpp.

Member Data Documentation

AABBox StelOBJ::MaterialGroup::boundingbox

The AABB of this group at load time.

Definition at line 168 of file StelOBJ.hpp.

Vec3f StelOBJ::MaterialGroup::centroid

The centroid of this group at load time.

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

Definition at line 166 of file StelOBJ.hpp.

int StelOBJ::MaterialGroup::indexCount

The amount of indices after the start index which belong to this material group.

Definition at line 155 of file StelOBJ.hpp.

int StelOBJ::MaterialGroup::materialIndex

The index of the material that this group uses.

Definition at line 160 of file StelOBJ.hpp.

int StelOBJ::MaterialGroup::objectIndex

The index of the object this group belongs to.

Definition at line 158 of file StelOBJ.hpp.

int StelOBJ::MaterialGroup::startIndex

The starting index in the index list.

Definition at line 153 of file StelOBJ.hpp.


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