public final class PgOffLoader extends PgAbstractLoader
Currently, alpha value is only considered as global alpha and not per face (this will be improved when available in JavaView). The last alpha value of an off file is consider the global alpha of the surface.
|Constructor and Description|
|Modifier and Type||Method and Description|
Read geometry file in Geometry Center's OFF file format.
Read an OFF geometry file and return an array of new geometries.
Write an array of geometries into an output stream writer.
getAnimations, getDisplayOption, getGeometries, getSpecializedGeometries, isAnimation, isEnabledOptimization, load, read, setAnimation, setDisplayOption, setGeometryOption, write
public static PgJvxSrc read(java.lang.String fileName)
The returned array of geometry may contain keyframes of
an animation. This is checked with the method
fileName- Name of file to read textual data from.
write(Writer, PgJvxSrc )
public PgJvxSrc read(java.io.BufferedReader in)
Alternatively, one may call load(BuffereredReader) followed by getGeometries() resp. getAnimations() to have a finer control about which information one wants to use from a source. For example, optional display information must be retrieve by a subsequent call getDisplayOption() if available.
public boolean write(java.io.Writer writer, PgJvxSrc geomArr) throws java.io.IOException
Numbers with absolute value less than
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.