anar

Class CSpline

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

public class CSpline
extends Pts


Field Summary
 boolean closedMode
           
static RenderSpline globalRender
           
static int HIMSELF
           
 int mode
           
static int NEXT
           
static int PREVIOUS
           
 RenderSpline render
           
 
Fields inherited from class anar.Pts
meta, ptList
 
Constructor Summary
CSpline()
           
CSpline(float degree)
           
CSpline(Param degree)
           
CSpline(Pts pts)
           
CSpline(Pts pts, float degree)
           
CSpline(Pts pts, Param degree)
           
 
Method Summary
 Pts asCurve(int n)
          Deprecated replaced by discretization(int)
 Pts asCurve(int n, float order)
          Deprecated replaced by #discretization(int,float)
 CSpline closed()
           
 Pts discretization(int n)
          Create a serie of point distributed along the line.
 void draw()
           
 void drawConstructionLines()
           
 Pts getPts(int n)
          Deprecated Replaced by discretization(int)
 Pts getPtsFromRender()
          Deprecated 
 float[] ptOnCurve(float t)
           
 float[] ptOnCurve(float t, Pt _p0, Pt p0, Pt p1, Pt p1_)
           
 CSpline stroke(AColor c)
           
 java.lang.String toAutocad()
           
 java.lang.String toObjExporter()
           
 java.lang.String toObjExporter(java.lang.String name)
           
 java.lang.String toObjExporterAsCurve(java.lang.String name)
           
 java.lang.String toPovRayAsCylinder()
           
 java.lang.String toRhinoAsObject()
           
 
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, drawPoints, flip, get, getPt, inLine, iterator, length, numOfPts, orphaned, pt, ptEnd, ptEnd, ptMod, 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, tag, tag, toANSYS, toMegaPOVLink, toPovRayAsArray, toRadianceAsCylinder, toRhino, 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 RenderSpline globalRender

render

public RenderSpline 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

CSpline

public CSpline(Pts pts,
               Param degree)

CSpline

public CSpline(Pts pts)

CSpline

public CSpline(Pts pts,
               float degree)

CSpline

public CSpline(Param degree)

CSpline

public CSpline(float degree)

CSpline

public CSpline()
Method Detail

ptOnCurve

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

ptOnCurve

public float[] ptOnCurve(float t)
Overrides:
ptOnCurve in class Pts

getPtsFromRender

@Deprecated
public Pts getPtsFromRender()
Deprecated 


getPts

@Deprecated
public Pts getPts(int n)
Deprecated Replaced by discretization(int)

Parameters:
n -
Returns:

discretization

public Pts discretization(int n)
Create a serie of point distributed along the line. Works on curves and straight lines.

Overrides:
discretization in class Pts
Returns:

asCurve

@Deprecated
public Pts asCurve(int n,
                              float order)
Deprecated replaced by #discretization(int,float)

Parameters:
n -
order -
Returns:

asCurve

@Deprecated
public Pts asCurve(int n)
Deprecated replaced by discretization(int)

Parameters:
n -
Returns:

stroke

public CSpline stroke(AColor c)
Overrides:
stroke in class Pts

draw

public void draw()
Overrides:
draw in class Pts

drawConstructionLines

public void drawConstructionLines()

toAutocad

public java.lang.String toAutocad()
Overrides:
toAutocad in class Pts

toPovRayAsCylinder

public java.lang.String toPovRayAsCylinder()
Overrides:
toPovRayAsCylinder in class Pts

toRhinoAsObject

public java.lang.String toRhinoAsObject()
Overrides:
toRhinoAsObject in class Pts
Returns:

toObjExporter

public java.lang.String toObjExporter()
Overrides:
toObjExporter in class Pts

toObjExporter

public java.lang.String toObjExporter(java.lang.String name)
Overrides:
toObjExporter in class Pts

toObjExporterAsCurve

public java.lang.String toObjExporterAsCurve(java.lang.String name)

closed

public CSpline closed()
Returns: