|
HDK
|
#include <GU_IOPLY.h>
Public Member Functions | |
| int | write (const GU_Detail &gdp, std::ostream &os, bool binary, bool littleendian=false) |
| bool | read (GU_Detail &gdp, UT_IStream &is) |
| Read the .ply directly into a gdp. More... | |
Utility classes to load and save .ply files. Note this is not a standard IO extension itself.
Definition at line 23 of file GU_IOPLY.h.
| bool GU_IOPLYUtil::read | ( | GU_Detail & | gdp, |
| UT_IStream & | is | ||
| ) |
Read the .ply directly into a gdp.
| int GU_IOPLYUtil::write | ( | const GU_Detail & | gdp, |
| std::ostream & | os, | ||
| bool | binary, | ||
| bool | littleendian = false |
||
| ) |
Write the gdp to the os as a .ply. Note this does not apply any promotion of vertex attributes or convexing to 255. NOTE: This writes with the streams current precision, default precision is insufficient so you may need to do: os.precision(SYS_FLT_DIG); Export big_endian binary files by default, but little_endian is also supported.