public class ICurve extends IGeometry implements ICurveI
Constructor and Description |
---|
ICurve() |
ICurve(double[][] xyzValues) |
ICurve(double[][] xyzValues,
boolean close) |
ICurve(double[][] xyzValues,
int degree) |
ICurve(double[][] xyzValues,
int degree,
boolean close) |
ICurve(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
ICurve(ICurve crv) |
ICurve(ICurveGeo crv) |
ICurve(ICurveI crv) |
ICurve(IEdge edge) |
ICurve(IServerI s) |
ICurve(IServerI s,
double[][] xyzValues) |
ICurve(IServerI s,
double[][] xyzValues,
boolean close) |
ICurve(IServerI s,
double[][] xyzValues,
int degree) |
ICurve(IServerI s,
double[][] xyzValues,
int degree,
boolean close) |
ICurve(IServerI s,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
ICurve(IServerI s,
ICurve crv) |
ICurve(IServerI s,
ICurveGeo crv) |
ICurve(IServerI s,
ICurveI crv) |
ICurve(IServerI s,
IEdge edge) |
ICurve(IServerI s,
IVecI pt)
this creates a line between a same point
|
ICurve(IServerI s,
IVecI[] cpts) |
ICurve(IServerI s,
IVecI[] cpts,
boolean close) |
ICurve(IServerI s,
IVecI[] cpts,
int degree) |
ICurve(IServerI s,
IVecI[] cpts,
int degree,
boolean close) |
ICurve(IServerI s,
IVecI[] cpts,
int degree,
double[] knots) |
ICurve(IServerI s,
IVecI[] cpts,
int degree,
double[] knots,
double ustart,
double uend) |
ICurve(IServerI s,
IVecI pt1,
IVecI pt2) |
ICurve(IVecI pt)
this creates a line between a same point
|
ICurve(IVecI[] cpts) |
ICurve(IVecI[] cpts,
boolean close) |
ICurve(IVecI[] cpts,
int degree) |
ICurve(IVecI[] cpts,
int degree,
boolean close) |
ICurve(IVecI[] cpts,
int degree,
double[] knots) |
ICurve(IVecI[] cpts,
int degree,
double[] knots,
double ustart,
double uend) |
ICurve(IVecI pt1,
IVecI pt2) |
Modifier and Type | Method and Description |
---|---|
ICurve |
add(double x,
double y,
double z)
transformation methods; API of ITransformable interface
|
ICurve |
add(double f,
IVecI v)
scale add alias
|
ICurve |
add(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurve |
add(IDoubleI f,
IVecI v)
scale add alias
|
ICurve |
add(IVecI v) |
ICurve |
add(IVecI v,
double f)
scale add
|
ICurve |
add(IVecI v,
IDoubleI f)
scale add
|
ICurve |
addCP(int index,
IVecI pt)
add control point at i and rebuild the curve.
|
ICurve |
addCP(int index,
IVecI[] pts)
add control points at i and rebuild the curve.
|
ICurve |
addCP(int index,
IVecI[] pts,
int newDegree)
add control points at i and rebuild the curve and newDegree.
|
ICurve |
addCP(int index,
IVecI pt,
int newDegree)
add control point at i and rebuild the curve and change degree.
|
ICurve |
addCP(IVecI pt)
add control point at the end and rebuild the curve.
|
ICurve |
addCP(IVecI[] pts)
add control points at the end and rebuild the curve.
|
ICurve |
addCP(IVecI[] pts,
int newDegree)
add control points at the end and rebuild the curve and change degree.
|
ICurve |
addCP(IVecI pt,
int newDegree)
add control point at the end and rebuild the curve and change degree.
|
ICurve |
attr(IAttribute at)
set attributes
|
IVec |
center()
returns center of geometry object
|
IVec |
closePt(IVec2I pt)
find approximately closest point on a curve on 2D
|
IVec |
closePt(IVecI pt)
find approximately closest point on a curve
|
ICurve |
clr(java.awt.Color c) |
ICurve |
clr(java.awt.Color c,
double alpha) |
ICurve |
clr(java.awt.Color c,
float alpha) |
ICurve |
clr(java.awt.Color c,
int alpha) |
ICurve |
clr(double dgray) |
ICurve |
clr(double dgray,
double dalpha) |
ICurve |
clr(double dr,
double dg,
double db) |
ICurve |
clr(double dr,
double dg,
double db,
double da) |
ICurve |
clr(float fgray) |
ICurve |
clr(float fgray,
float falpha) |
ICurve |
clr(float fr,
float fg,
float fb) |
ICurve |
clr(float fr,
float fg,
float fb,
float fa) |
ICurve |
clr(IColor c)
to set an object color
|
ICurve |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten
|
ICurve |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten
|
ICurve |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten
|
ICurve |
clr(int gray) |
ICurve |
clr(int gray,
int alpha) |
ICurve |
clr(int r,
int g,
int b) |
ICurve |
clr(int r,
int g,
int b,
int a) |
ICurve |
clr(IObject o)
to set the same color with the object
|
ICurve |
cp()
cp() is alias of dup()
|
ICurve |
cp(double x,
double y,
double z)
cp() is alias of dup().add()
|
ICurve |
cp(IDoubleI x,
IDoubleI y,
IDoubleI z)
cp() is alias of dup().add()
|
IVecI |
cp(IIntegerI i)
getting i-th control point
|
IVec |
cp(int i)
getting i-th control point
|
ICurve |
cp(IVecI v)
cp() is alias of dup().add()
|
int |
cpNum() |
int |
cpNum(ISwitchE e) |
IInteger |
cpNum(ISwitchR r) |
IVecI[] |
cps()
all control points
|
IGraphicObject |
createGraphic(igeo.gui.IGraphicMode m) |
int |
deg() |
int |
deg(ISwitchE e) |
IInteger |
deg(ISwitchR r) |
double |
dist(IVec2I pt)
distance to the closest point on a curve on 2D
|
double |
dist(IVecI pt)
distance to the closest point on a curve
|
ICurve |
div(double v) |
ICurve |
div(IDoubleI v) |
ICurve |
dup()
duplicate object
|
IVec |
end()
end point of the curve
|
IVec |
endCP()
end control point of the curve
|
IVec |
ep(IIntegerI i)
getting i-th edit point
|
IVec |
ep(int i)
getting i-th edit point
|
int |
epNum() |
int |
epNum(ISwitchE e) |
IInteger |
epNum(ISwitchR r) |
ICurve |
flip()
alias of neg
|
ICurve |
flipU()
alias of rev()
|
ICurveGeo |
get() |
ICurve |
hide() |
ICurve |
hsb(double h,
double s,
double b) |
ICurve |
hsb(double h,
double s,
double b,
double a) |
ICurve |
hsb(float h,
float s,
float b) |
ICurve |
hsb(float h,
float s,
float b,
float a) |
void |
initCurve(IServerI s) |
ICurve |
insertCP(int index,
IVecI pt)
alias of addCP(int,IVecI)
|
ICurve |
insertCP(int index,
IVecI[] pts)
alias of addCP(int,IVecI[])
|
IVec[] |
intersectPlane(IVecI planeDir,
IVecI planePt)
intersection of curve
|
IVec[] |
intersectPlane(IVecI planeDir,
IVecI planePt,
int segmentResolution)
intersection of curve and plane.
|
boolean |
isClosed() |
boolean |
isClosed(ISwitchE e) |
IBool |
isClosed(ISwitchR r) |
boolean |
isInside2d(IVecI pt)
check if the input point is inside a closed curve.
|
boolean |
isInside2d(IVecI pt,
IVecI projectionDir)
check if the input point is inside a closed curve.
|
boolean |
isRational() |
boolean |
isRational(ISwitchE e) |
IBool |
isRational(ISwitchR r) |
boolean |
isValid()
checking parameters validity.
|
IDouble |
knot(IIntegerI i) |
double |
knot(int i)
close curve with the current control points.
|
int |
knotNum() |
int |
knotNum(ISwitchE e) |
IInteger |
knotNum(ISwitchR r) |
double[] |
knots()
all knot values
|
double[] |
knots(ISwitchE e) |
IDoubleI[] |
knots(ISwitchR r) |
ICurve |
layer(ILayer l)
Set layer by ILayer object
|
ICurve |
layer(java.lang.String l)
Set layer by layer name.
|
double |
len() |
double |
len(ISwitchE e) |
IDouble |
len(ISwitchR r) |
IVec |
mid()
parametrically mid point of a curve
|
ICurve |
mirror(IVecI planeDir)
mirror is alias of ref
|
ICurve |
mirror(IVecI center,
IVecI planeDir) |
ICurve |
mul(double v) |
ICurve |
mul(IDoubleI v) |
ICurve |
mv(double x,
double y,
double z)
mv() is alias of add()
|
ICurve |
mv(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurve |
mv(IVecI v) |
ICurve |
name(java.lang.String nm)
IObject methods
|
ICurve |
neg() |
int |
num()
change degree.
|
int |
num(ISwitchE e) |
IInteger |
num(ISwitchR r) |
IVec |
pt(double u) |
IVec |
pt(IDoubleI u) |
ICurve |
ref(IVecI planeDir)
reflect(mirror) 3 dimensionally to the other side of the plane
|
ICurve |
ref(IVecI center,
IVecI planeDir) |
ICurve |
removeCP()
removing control point at the end and rebuild the curve.
|
ICurve |
removeCP(int index)
removing control point at i and rebuild the curve
note that a knots is rebuilt with default equal interval
and destroy original knot intervals if variable, like circle.
|
ICurve |
removeCP(int indexFrom,
int indexTo)
removing control point from indexFrom to indexTo-1 and rebuild the curve
note that a knots is rebuilt with default equal interval
and destroy original knot intervals if variable, like circle.
|
ICurve |
rev()
reverse self curve ; not creating a new object
|
ICurve |
revU()
alias of rev()
|
ICurve |
rot(double angle) |
ICurve |
rot(IDoubleI angle)
rotation around z-axis and origin
|
ICurve |
rot(IVecI axis,
double angle) |
ICurve |
rot(IVecI axis,
IDoubleI angle)
rotation around axis vector
|
ICurve |
rot(IVecI axis,
IVecI destDir)
rotate to destination direction vector
|
ICurve |
rot(IVecI center,
IVecI axis,
double angle) |
ICurve |
rot(IVecI center,
IVecI axis,
IDoubleI angle)
rotation around axis vector and center
|
ICurve |
rot(IVecI center,
IVecI axis,
IVecI destPt)
rotate to destination point location
|
ICurve |
rot2(double angle)
rotation on xy-plane around origin; same with rot(double)
|
ICurve |
rot2(IDoubleI angle)
rotation on xy-plane around origin; same with rot(IDoubleI)
|
ICurve |
rot2(IVecI destDir)
rotation on xy-plane to destination direction vector
|
ICurve |
rot2(IVecI center,
double angle) |
ICurve |
rot2(IVecI center,
IDoubleI angle)
rotation on xy-plane around center
|
ICurve |
rot2(IVecI center,
IVecI destPt)
rotation on xy-plane to destination point location
|
ICurve |
scale(double f) |
ICurve |
scale(IDoubleI f)
alias of mul
|
ICurve |
scale(IVecI center,
double f) |
ICurve |
scale(IVecI center,
IDoubleI f) |
ICurve |
scale1d(IVecI axis,
double f)
scale only in 1 direction
|
ICurve |
scale1d(IVecI axis,
IDoubleI f) |
ICurve |
scale1d(IVecI center,
IVecI axis,
double f) |
ICurve |
scale1d(IVecI center,
IVecI axis,
IDoubleI f) |
ICurve |
setColor(java.awt.Color c) |
ICurve |
setColor(java.awt.Color c,
double alpha) |
ICurve |
setColor(java.awt.Color c,
float alpha) |
ICurve |
setColor(java.awt.Color c,
int alpha) |
ICurve |
setColor(double dgray) |
ICurve |
setColor(double dgray,
double dalpha) |
ICurve |
setColor(double dr,
double dg,
double db) |
ICurve |
setColor(double dr,
double dg,
double db,
double da) |
ICurve |
setColor(float fgray) |
ICurve |
setColor(float fgray,
float falpha) |
ICurve |
setColor(float fr,
float fg,
float fb) |
ICurve |
setColor(float fr,
float fg,
float fb,
float fa) |
ICurve |
setColor(IColor c) |
ICurve |
setColor(IColor c,
double alpha) |
ICurve |
setColor(IColor c,
float alpha) |
ICurve |
setColor(IColor c,
int alpha) |
ICurve |
setColor(int gray) |
ICurve |
setColor(int gray,
int alpha) |
ICurve |
setColor(int r,
int g,
int b) |
ICurve |
setColor(int r,
int g,
int b,
int a) |
ICurve |
setHSBColor(double h,
double s,
double b) |
ICurve |
setHSBColor(double h,
double s,
double b,
double a) |
ICurve |
setHSBColor(float h,
float s,
float b) |
ICurve |
setHSBColor(float h,
float s,
float b,
float a) |
ICurve |
shear(double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz)
shear operation
|
ICurve |
shear(IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ICurve |
shear(IVecI center,
double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz) |
ICurve |
shear(IVecI center,
IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ICurve |
shearXY(double sxy,
double syx) |
ICurve |
shearXY(IDoubleI sxy,
IDoubleI syx) |
ICurve |
shearXY(IVecI center,
double sxy,
double syx) |
ICurve |
shearXY(IVecI center,
IDoubleI sxy,
IDoubleI syx) |
ICurve |
shearYZ(double syz,
double szy) |
ICurve |
shearYZ(IDoubleI syz,
IDoubleI szy) |
ICurve |
shearYZ(IVecI center,
double syz,
double szy) |
ICurve |
shearYZ(IVecI center,
IDoubleI syz,
IDoubleI szy) |
ICurve |
shearZX(double szx,
double sxz) |
ICurve |
shearZX(IDoubleI szx,
IDoubleI sxz) |
ICurve |
shearZX(IVecI center,
double szx,
double sxz) |
ICurve |
shearZX(IVecI center,
IDoubleI szx,
IDoubleI sxz) |
ICurve |
show() |
IVec |
start()
start point of the curve
|
IVec |
startCP()
start control point of the curve
|
ICurve |
sub(double x,
double y,
double z) |
ICurve |
sub(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurve |
sub(IVecI v) |
IVec |
tan(double u) |
IVec |
tan(IDoubleI u) |
ICurve |
transform(IMatrix3I mat) |
ICurve |
transform(IMatrix4I mat) |
ICurve |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec) |
ICurve |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec,
IVecI translate) |
ICurve |
translate(double x,
double y,
double z)
translate is alias of add()
|
ICurve |
translate(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurve |
translate(IVecI v) |
IDouble |
u(IInteger epIdx,
IDouble epFraction) |
double |
u(int epIdx,
double epFraction) |
double |
u(ISwitchE r,
IVec2I pt) |
double |
u(ISwitchE r,
IVecI pt) |
IDouble |
u(ISwitchR r,
IVec2I pt) |
IDouble |
u(ISwitchR r,
IVecI pt) |
double |
u(IVec2I pt)
approximate invert projection from 2D location to interanl parameter U
|
double |
u(IVecI pt)
approximate invert projection from 3D location to interanl parameter U (closest point on curve)
|
double |
uend() |
double |
uend(ISwitchE e) |
IDouble |
uend(ISwitchR r) |
double |
ustart() |
double |
ustart(ISwitchE e) |
IDouble |
ustart(ISwitchR r) |
ICurve |
weight(double w) |
ICurve |
weight(float w) |
addDynamics, addUserData, addUserData, alpha, alphaInt, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, defaultAttribute, del, deletDynamics, deleteDynamics, deleteDynamics, deleteGraphic, dynamicsNum, getAWTColor, getColor, getDynamics, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isVisible, layer, name, red, redInt, resetGraphic, saturation, server, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, updateGraphic, userData, userData, userData, userDataNum, visible, weight
public ICurveGeo curve
public ICurve()
public ICurve(IVecI[] cpts, int degree, double[] knots, double ustart, double uend)
public ICurve(IVecI[] cpts, int degree, double[] knots)
public ICurve(IVecI[] cpts, int degree)
public ICurve(IVecI[] cpts)
public ICurve(IVecI[] cpts, int degree, boolean close)
public ICurve(IVecI[] cpts, boolean close)
public ICurve(IVecI pt)
public ICurve(double x1, double y1, double z1, double x2, double y2, double z2)
public ICurve(double[][] xyzValues)
public ICurve(double[][] xyzValues, int degree)
public ICurve(double[][] xyzValues, boolean close)
public ICurve(double[][] xyzValues, int degree, boolean close)
public ICurve(IEdge edge)
public ICurve(ICurveGeo crv)
public ICurve(ICurveI crv)
public ICurve(ICurve crv)
public ICurve(IServerI s)
public ICurve(IServerI s, IVecI[] cpts, int degree, double[] knots, double ustart, double uend)
public ICurve(IServerI s, double x1, double y1, double z1, double x2, double y2, double z2)
public ICurve(IServerI s, double[][] xyzValues)
public ICurve(IServerI s, double[][] xyzValues, int degree)
public ICurve(IServerI s, double[][] xyzValues, boolean close)
public ICurve(IServerI s, double[][] xyzValues, int degree, boolean close)
public void initCurve(IServerI s)
public IGraphicObject createGraphic(igeo.gui.IGraphicMode m)
createGraphic
in class IObject
public boolean isValid()
IObject
public ICurveGeo get()
public IVec startCP()
public IVec center()
public ICurve addCP(IVecI pt, int newDegree)
public ICurve addCP(IVecI pt)
public ICurve addCP(int index, IVecI pt, int newDegree)
public ICurve addCP(int index, IVecI pt)
public ICurve addCP(IVecI[] pts, int newDegree)
public ICurve addCP(IVecI[] pts)
public ICurve addCP(int index, IVecI[] pts, int newDegree)
public ICurve addCP(int index, IVecI[] pts)
public ICurve removeCP()
public ICurve removeCP(int index)
public ICurve removeCP(int indexFrom, int indexTo)
public double u(IVecI pt)
public double u(IVec2I pt)
public double dist(IVecI pt)
public double dist(IVec2I pt)
public double knot(int i)
ICurveI
public double[] knots()
ICurveI
public boolean isRational()
isRational
in interface ICurveI
public boolean isRational(ISwitchE e)
isRational
in interface ICurveI
public IBool isRational(ISwitchR r)
isRational
in interface ICurveI
public int num()
ICurveI
public ICurve rev()
public boolean isInside2d(IVecI pt, IVecI projectionDir)
public boolean isInside2d(IVecI pt)
public IVec[] intersectPlane(IVecI planeDir, IVecI planePt, int segmentResolution)
segmentResolution
- segmentation resolution per EP count in degree >= 1 curve.public ICurve add(double x, double y, double z)
public ICurve sub(double x, double y, double z)
public ICurve mul(double v)
public ICurve div(double v)
public ICurve neg()
public ICurve add(double f, IVecI v)
add
in interface ITransformable
add
in class IGeometry
public ICurve add(IDoubleI f, IVecI v)
IGeometry
add
in interface ITransformable
add
in class IGeometry
public ICurve rot(IDoubleI angle)
IGeometry
rot
in interface ITransformable
rot
in class IGeometry
public ICurve rot(double angle)
rot
in interface ITransformable
rot
in class IGeometry
public ICurve rot(IVecI axis, IDoubleI angle)
IGeometry
public ICurve rot(IVecI center, IVecI axis, IDoubleI angle)
IGeometry
public ICurve rot2(IDoubleI angle)
IGeometry
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve rot2(double angle)
IGeometry
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve rot2(IVecI center, IDoubleI angle)
IGeometry
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve rot2(IVecI center, double angle)
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve rot2(IVecI destDir)
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve rot2(IVecI center, IVecI destPt)
rot2
in interface ITransformable
rot2
in class IGeometry
public ICurve scale(double f)
public ICurve ref(IVecI planeDir)
public ICurve shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
public ICurve shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
public ICurve shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
public ICurve shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
public ICurve shearXY(double sxy, double syx)
public ICurve shearYZ(double syz, double szy)
public ICurve shearZX(double szx, double sxz)
public ICurve translate(double x, double y, double z)
public ICurve mv(double x, double y, double z)
public ICurve cp()
public ICurve cp(double x, double y, double z)
public ICurve layer(ILayer l)
IGeometry
public ICurve layer(java.lang.String l)
IGeometry
public ICurve attr(IAttribute at)
IObject
public ICurve clr(IColor c, int alpha)
IObject
public ICurve clr(IColor c, float alpha)
IObject
public ICurve clr(IColor c, double alpha)
IObject
public ICurve clr(IObject o)
IObject
public ICurve setColor(java.awt.Color c, double alpha)
public ICurve setColor(float fr, float fg, float fb)
public ICurve setColor(double dr, double dg, double db)
public ICurve setColor(float fr, float fg, float fb, float fa)
public ICurve setColor(double dr, double dg, double db, double da)
public ICurve setHSBColor(float h, float s, float b, float a)
setHSBColor
in class IGeometry
public ICurve setHSBColor(double h, double s, double b, double a)
setHSBColor
in class IGeometry
public ICurve setHSBColor(float h, float s, float b)
setHSBColor
in class IGeometry
public ICurve setHSBColor(double h, double s, double b)
setHSBColor
in class IGeometry