maspack.geometry.io
Class WavefrontReader.Curve

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

public static class WavefrontReader.Curve
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 degree
           
 int[] indices
           
 boolean isClosed
           
 boolean isRational
           
 double[] knots
           
 int lineNum
           
 int type
           
 double u0
           
 double u1
           
 
Constructor Summary
WavefrontReader.Curve()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          For testing ...
 void set(int type, boolean rat, int deg, boolean closed, double[] knots, int[] idxs, double u0, double u1, int line)
          For testing ...
 java.lang.String toString()
          For testing ...
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

degree

public int degree

type

public int type

isRational

public boolean isRational

isClosed

public boolean isClosed

knots

public double[] knots

indices

public int[] indices

u0

public double u0

u1

public double u1

lineNum

public int lineNum
Constructor Detail

WavefrontReader.Curve

public WavefrontReader.Curve()
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

set

public void set(int type,
                boolean rat,
                int deg,
                boolean closed,
                double[] knots,
                int[] idxs,
                double u0,
                double u1,
                int line)
For testing ...