All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_IOWavefrontUtil Class Reference

#include <GU_IOWavefront.h>

Public Member Functions

int write (const GU_Detail &gdp, std::ostream &os)
bool read (GU_Detail &gdp, UT_IStream &is)
void setDefaultGroup (const UT_StringHolder &group)
 Controls what is output after the default g line when writing. More...

Protected Attributes

UT_StringHolder myDefaultGroup

Detailed Description

Utility classes to load and save .obj files. Note this is not a standard IO extension itself.

Definition at line 22 of file GU_IOWavefront.h.

Member Function Documentation

bool GU_IOWavefrontUtil::read ( GU_Detail gdp,
UT_IStream is 

Read the .obj directly into a gdp. This does not do any reversal

void GU_IOWavefrontUtil::setDefaultGroup ( const UT_StringHolder group)

Controls what is output after the default g line when writing.

Definition at line 38 of file GU_IOWavefront.h.

int GU_IOWavefrontUtil::write ( const GU_Detail gdp,
std::ostream &  os 

Write the gdp to the os as a .obj. Note this does not apply any conversion or reversal of polygons, the caller is expected to have done this. NOTE: This writes with the streams current precision, default precision is insufficent so you may need to do: os.precision(SYS_FLT_DIG);

Member Data Documentation

UT_StringHolder GU_IOWavefrontUtil::myDefaultGroup

Definition at line 42 of file GU_IOWavefront.h.

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