anar

Class SplineSurf

java.lang.Object
  extended by anar.Parametric
      extended by anar.Pts
          extended by anar.SplineSurf
All Implemented Interfaces:
iTaggable, iTransformable

public class SplineSurf
extends Pts


Field Summary
 boolean closedMode
           
static RenderSplineSurf globalRender
           
static int HIMSELF
           
 int mode
           
static int NEXT
           
static int PREVIOUS
           
 RenderSplineSurf render
           
 
Fields inherited from class anar.Pts
meta, ptList
 
Constructor Summary
SplineSurf(CSpline inPtsA, CSpline inPtsB)
           
 
Method Summary
 void draw()
           
 CSpline inPtsA()
           
 CSpline inPtsB()
           
 float[] ptOnCurve(float u, float v, Pt[] cPt)
           
 float[] ptOnSurf(float u, float v, Vertex _p0a, Vertex p0a, Vertex p1a, Vertex p1a_, Vertex _p0b, Vertex p0b, Vertex p1b, Vertex p1b_)
           
 
Methods inherited from class anar.Pts
add, add, add, add, add, add, add, add, addPointsFrom, apply, area, area, bound, boundCenter, color, color, color, color, color, copy, discretization, drawPoints, flip, get, getPt, inLine, iterator, length, numOfPts, orphaned, pt, ptEnd, ptEnd, ptMod, ptOnCurve, remove, remove, render, render, reverse, rotateX, rotateX, rotateY, rotateY, rotateZ, rotateZ, scale, scale, scale, scale, scale, scale, scale, scale, scaleX, scaleX, scaleY, scaleY, scaleZ, scaleZ, set, set, setMeta, size, stroke, stroke, stroke, stroke, stroke, tag, tag, toANSYS, toAutocad, toMegaPOVLink, toObjExporter, toObjExporter, toPovRayAsArray, toPovRayAsCylinder, toRadianceAsCylinder, toRhino, toRhinoAsObject, toSketchUp, toString, translate, translate, translate, translate, translate, translate, translateX, translateX, translateY, translateY, translateZ, translateZ
 
Methods inherited from class anar.Parametric
child, getMeta, getPrimitive, parent, parent, parentList, parentList, parentList, parentListGraphViz, parentListGraphViz, parentListRecursive, parentListRecursiveGraphViz, parentToString, parentToStringRecursive, parentToStringRecursive, primitiveToString, replaceParent, replaceParent, replicate, tag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

globalRender

public static RenderSplineSurf globalRender

render

public RenderSplineSurf render

closedMode

public boolean closedMode

mode

public int mode

HIMSELF

public static final int HIMSELF
See Also:
Constant Field Values

NEXT

public static final int NEXT
See Also:
Constant Field Values

PREVIOUS

public static final int PREVIOUS
See Also:
Constant Field Values
Constructor Detail

SplineSurf

public SplineSurf(CSpline inPtsA,
                  CSpline inPtsB)
Method Detail

inPtsA

public CSpline inPtsA()

inPtsB

public CSpline inPtsB()

ptOnCurve

public float[] ptOnCurve(float u,
                         float v,
                         Pt[] cPt)
Parameters:
u - = interval on the curve (0-1)
_p0 - = direction of firstPt (before)
p0 - = startingPt
p1 - = secondPt
p1_ - =
Returns:

draw

public void draw()
Overrides:
draw in class Pts

ptOnSurf

public float[] ptOnSurf(float u,
                        float v,
                        Vertex _p0a,
                        Vertex p0a,
                        Vertex p1a,
                        Vertex p1a_,
                        Vertex _p0b,
                        Vertex p0b,
                        Vertex p1b,
                        Vertex p1b_)
Parameters:
f -
g -
_p0a -
p0a -
p1a -
p1a_ -
_p0b -
p0b -
p1b -
p1b_ -
Returns: