JavaView® v2.00.008

jv.loader
Class PgOffLoader

java.lang.Object
  |
  +--jv.loader.PgOffLoader

public class PgOffLoader
extends java.lang.Object

Loader for geometry files given in Geometry Center's OFF file format.

Version:
22.08.99, 1.00 created (kp)
Author:
Konrad Polthier

Constructor Summary
PgOffLoader()
           
 
Method Summary
protected static PgJvxSrc parse(java.io.BufferedReader bufReader)
          Parse a Geometry Center's .off file and fill instance variables of this class.
static PgJvxSrc read(java.io.BufferedReader in)
          Read geometry file in Geometry Center's OFF file format.
static PgJvxSrc read(java.lang.String fileName)
          Read geometry file in Geometry Center's OFF file format.
static java.lang.String write(PgJvxSrc geom)
          Write a geometry into a string in OFF file format.
protected static java.lang.String writeElements(int num, PiVector[] element, PdVector[] elementNormal)
          Write list of elements and element normals into string.
protected static java.lang.String writeVertices(int num, PdVector[] vertex)
          Write list of vertices into string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PgOffLoader

public PgOffLoader()
Method Detail

read

public static PgJvxSrc read(java.lang.String fileName)
Read geometry file in Geometry Center's OFF file format.

read

public static PgJvxSrc read(java.io.BufferedReader in)
Read geometry file in Geometry Center's OFF file format.

parse

protected static PgJvxSrc parse(java.io.BufferedReader bufReader)
Parse a Geometry Center's .off file and fill instance variables of this class. This is a helper routine of read.
See Also:
PgOffLoader#read(PgGeometry, String)

write

public static java.lang.String write(PgJvxSrc geom)
Write a geometry into a string in OFF file format. Numbers with absolute value less than EPS are shown as zero. This avoids the anoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

writeVertices

protected static java.lang.String writeVertices(int num,
                                                PdVector[] vertex)
Write list of vertices into string. Numbers with absolute value less than EPS are shown as zero. This avoids the anoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

writeElements

protected static java.lang.String writeElements(int num,
                                                PiVector[] element,
                                                PdVector[] elementNormal)
Write list of elements and element normals into string. Numbers with absolute value less than EPS are shown as zero. This avoids the anoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.