public final class PgObjLoader extends PgAbstractLoader
GEOM_DATA_AUTHOR, GEOM_DATA_COLORS, GEOM_DATA_HEADER, GEOM_DATA_INFO, GEOM_DATA_NORMALS, GEOM_DATA_TEXTURE, GEOM_DATA_VECTORS
Constructor and Description |
---|
PgObjLoader() |
Modifier and Type | Method and Description |
---|---|
PgJvxSrc[] |
read(java.io.BufferedReader in)
Read geometry file in Wavefront's OBJ file format.
|
PgJvxSrc[] |
read(java.lang.String fileName)
Read geometry file in Wavefront's OBJ file format.
|
boolean |
write(java.io.Writer writer,
PgJvxSrc[] geomArr)
Write an array of geometries into an output stream writer.
|
getAnimations, getDisplayOption, getGeometries, getSpecializedGeometries, isAnimation, isEnabledOptimization, load, read, setAnimation, setDisplayOption, setGeometryOption, write
public PgJvxSrc[] read(java.lang.String fileName)
public PgJvxSrc[] read(java.io.BufferedReader in)
read
in interface PgLoaderIf
read
in class PgAbstractLoader
in
- BufferedReader to read textual data from.PgAbstractLoader.write(Writer, PgJvxSrc [])
public boolean write(java.io.Writer writer, PgJvxSrc[] geomArr) throws java.io.IOException
Numbers with absolute value less than jv.vecmath.PuMath#EPS
are
shown as zero. This avoids the annoying fact that double precision numbers fill
the whole text area hiding the exponent, which hides their small value.
write
in interface PgLoaderIf
write
in class PgAbstractLoader
writer
- Write all data to this streamgeomArr
- Array with geometries to savetrue
on success.java.io.IOException
read(BufferedReader)
"