maspack.geometry.io
Class WavefrontReader.Surface

java.lang.Object
  extended by maspack.geometry.io.WavefrontReader.Surface
Enclosing class:
WavefrontReader

public static class WavefrontReader.Surface
extends java.lang.Object

A simple container class to hold all the info for a Wavefront curve specification. At this time, only rational BSPLINE types are supported.


Field Summary
 int[] indices
           
 boolean isRational
           
 int lineNum
           
 int[] normalIndices
           
 int[] textureIndices
           
 int type
           
 double u0
           
 double u1
           
 int udegree
           
 boolean uIsClosed
           
 double[] uknots
           
 double v0
           
 double v1
           
 int vdegree
           
 boolean vIsClosed
           
 double[] vknots
           
 
Constructor Summary
WavefrontReader.Surface()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          For testing ...
 void setGen(int type, boolean rat, int[] idxs, int line)
          For testing ...
 void setu(int deg, boolean closed, double[] knots, double u0, double u1)
           
 void setv(int deg, boolean closed, double[] knots, double v0, double v1)
           
 java.lang.String toString()
          For testing ...
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public int type

isRational

public boolean isRational

udegree

public int udegree

uIsClosed

public boolean uIsClosed

uknots

public double[] uknots

u0

public double u0

u1

public double u1

vdegree

public int vdegree

vIsClosed

public boolean vIsClosed

vknots

public double[] vknots

v0

public double v0

v1

public double v1

indices

public int[] indices

textureIndices

public int[] textureIndices

normalIndices

public int[] normalIndices

lineNum

public int lineNum
Constructor Detail

WavefrontReader.Surface

public WavefrontReader.Surface()
Method Detail

equals

public boolean equals(java.lang.Object obj)
For testing ...

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
For testing ...

Overrides:
toString in class java.lang.Object

setGen

public void setGen(int type,
                   boolean rat,
                   int[] idxs,
                   int line)
For testing ...


setu

public void setu(int deg,
                 boolean closed,
                 double[] knots,
                 double u0,
                 double u1)

setv

public void setv(int deg,
                 boolean closed,
                 double[] knots,
                 double v0,
                 double v1)