anar
Class CSpline
java.lang.Object
anar.Parametric
anar.Pts
anar.CSpline
- All Implemented Interfaces:
- iTaggable, iTransformable
public class CSpline
- extends Pts
| 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 |
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
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()
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 - = startingPtp1 - = secondPtp1_ - =
- 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: