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

Represents an OBJ object as defined with the 'o' statement. More...

#include <StelOBJ.hpp>

+ Collaboration diagram for StelOBJ::Object:

Public Attributes

bool isDefaultObject
 True if this object was automatically generated because no 'o' statements were before the first 'f' statement. More...
 
QString name
 The name of the object. May be empty. More...
 
Vec3f centroid
 The centroid of this object at load time. More...
 
AABBox boundingbox
 The AABB of this object at load time. More...
 
MaterialGroupList groups
 The list of material groups in this object. More...
 

Friends

class StelOBJ
 

Detailed Description

Represents an OBJ object as defined with the 'o' statement.

There is an default object for faces defined before any 'o' statement

Definition at line 175 of file StelOBJ.hpp.

Member Data Documentation

AABBox StelOBJ::Object::boundingbox

The AABB of this object at load time.

Definition at line 196 of file StelOBJ.hpp.

Vec3f StelOBJ::Object::centroid

The centroid of this object 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 194 of file StelOBJ.hpp.

MaterialGroupList StelOBJ::Object::groups

The list of material groups in this object.

Definition at line 199 of file StelOBJ.hpp.

bool StelOBJ::Object::isDefaultObject

True if this object was automatically generated because no 'o' statements were before the first 'f' statement.

Definition at line 185 of file StelOBJ.hpp.

QString StelOBJ::Object::name

The name of the object. May be empty.

Definition at line 188 of file StelOBJ.hpp.


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