com.jogamp.opengl.impl.glu.nurbs
Class Quilt

java.lang.Object
  extended by com.jogamp.opengl.impl.glu.nurbs.Quilt

public class Quilt
extends Object

Class for converting NURBS curves and surfaces to list of bezier arcs or patches repectively

Author:
Tomáš Hráský

Field Summary
 CArrayOfFloats cpts
          Control points
 CArrayOfQuiltspecs eqspec
          End array of quilt specs pointer
 Quilt next
          Next quilt in list
 CArrayOfQuiltspecs qspec
          Array of quiltspecs pointer
 
Constructor Summary
Quilt(Mapdesc mapdesc)
          Makes new quilt with mapdesc
 
Method Summary
 void downloadAll(float[] pta, float[] ptb, Backend backend)
          Walks thru all arcs/patches
 void findRates(Flist sbrkpts, Flist tbrkpts, float[] rate)
          Empty method
 void getRange(float[] from, float[] to, Flist bpts)
          Find range according to breakpoints
 void getRange(float[] from, float[] to, Flist slist, Flist tlist)
          Finds range for surface
 int isCulled()
          Is this quilt culled
 void toBezier(Knotvector knots, CArrayOfFloats ctlarray, int ncoords)
          Converts NURBS curve to list of bezier curves
 void toBezier(Knotvector sknotvector, Knotvector tknotvector, CArrayOfFloats ctrlarr, int coords)
          Converts NURBS surface to bezier patches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qspec

public CArrayOfQuiltspecs qspec
Array of quiltspecs pointer


eqspec

public CArrayOfQuiltspecs eqspec
End array of quilt specs pointer


cpts

public CArrayOfFloats cpts
Control points


next

public Quilt next
Next quilt in list

Constructor Detail

Quilt

public Quilt(Mapdesc mapdesc)
Makes new quilt with mapdesc

Parameters:
mapdesc - map description
Method Detail

toBezier

public void toBezier(Knotvector sknotvector,
                     Knotvector tknotvector,
                     CArrayOfFloats ctrlarr,
                     int coords)
Converts NURBS surface to bezier patches

Parameters:
sknotvector - knots in u direction
tknotvector - knots in v direction
ctrlarr - control points
coords - control points coords

toBezier

public void toBezier(Knotvector knots,
                     CArrayOfFloats ctlarray,
                     int ncoords)
Converts NURBS curve to list of bezier curves

Parameters:
knots - knot vector
ctlarray - control points
ncoords - number of coordinates

downloadAll

public void downloadAll(float[] pta,
                        float[] ptb,
                        Backend backend)
Walks thru all arcs/patches

Parameters:
pta - low border
ptb - high border
backend - Backend

getRange

public void getRange(float[] from,
                     float[] to,
                     Flist bpts)
Find range according to breakpoints

Parameters:
from - low param
to - high param
bpts - breakpoints

isCulled

public int isCulled()
Is this quilt culled

Returns:
0 or Subdivider.CULL_ACCEPT

getRange

public void getRange(float[] from,
                     float[] to,
                     Flist slist,
                     Flist tlist)
Finds range for surface

Parameters:
from - low param
to - high param
slist - u direction breakpoints
tlist - v direction breakpoints

findRates

public void findRates(Flist sbrkpts,
                      Flist tbrkpts,
                      float[] rate)
Empty method

Parameters:
sbrkpts -
tbrkpts -
rate -


Copyright 2010 JogAmp Community.