public class ITrimCurve extends ICurveGeo implements ITrimCurveI
Modifier and Type | Field and Description |
---|---|
ISurfaceI |
surface |
basisFunction, controlPoints, defaultWeights, degree, derivativeFunction, knots, uend, uSearchCache, ustart
parent
Constructor and Description |
---|
ITrimCurve() |
ITrimCurve(double[][] xyValues) |
ITrimCurve(double[][] xyValues,
boolean close) |
ITrimCurve(double[][] xyValues,
int degree) |
ITrimCurve(double[][] xyValues,
int degree,
boolean close) |
ITrimCurve(double x1,
double y1,
double x2,
double y2) |
ITrimCurve(ICurve crv) |
ITrimCurve(ICurveGeo crv) |
ITrimCurve(ICurveI crv) |
ITrimCurve(ITrimCurve crv) |
ITrimCurve(ITrimCurve crv,
ISurfaceI surf) |
ITrimCurve(IVecI[] cpts) |
ITrimCurve(IVecI[] cpts,
boolean close) |
ITrimCurve(IVecI[] cpts,
int degree) |
ITrimCurve(IVecI[] cpts,
int degree,
boolean close) |
ITrimCurve(IVecI[] cpts,
int degree,
double[] knots) |
ITrimCurve(IVecI[] cpts,
int degree,
double[] knots,
double ustart,
double uend) |
ITrimCurve(IVecI pt1,
IVecI pt2) |
Modifier and Type | Method and Description |
---|---|
ITrimCurve |
add(double x,
double y,
double z)
transformation methods
|
ITrimCurve |
add(double f,
IVecI v)
scale add alias
|
ITrimCurve |
add(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ITrimCurve |
add(IDoubleI f,
IVecI v)
scale add alias
|
ITrimCurve |
add(IVecI v) |
ITrimCurve |
add(IVecI v,
double f)
scale add
|
ITrimCurve |
add(IVecI v,
IDoubleI f)
scale add
|
ITrimCurve |
cp()
cp() is alias of dup()
|
ITrimCurve |
cp(double x,
double y,
double z)
cp() is alias of dup().add()
|
ITrimCurve |
cp(IDoubleI x,
IDoubleI y,
IDoubleI z)
cp() is alias of dup().add()
|
ITrimCurve |
cp(IVecI v)
cp() is alias of dup().add()
|
ITrimCurve |
div(double v) |
ITrimCurve |
div(IDoubleI v) |
ITrimCurve |
dup()
When duplicated, surface is cleared and need to be re-set later.
|
IVec2 |
end2() |
IVec2 |
end2d()
alias
|
IVec2 |
endCP2() |
IVec2 |
endCP2d()
alias
|
ITrimCurve |
flip()
alias of neg
|
ITrimCurve |
flipU()
alias of rev()
|
ITrimCurve |
get() |
ICurveGeo |
get3d()
Gets trim curve in 3d space mapped via the surface
(Currently very rough approximation)
|
boolean |
isClosed() |
ITrimCurve |
mirror(IVecI planeDir)
mirror is alias of ref
|
ITrimCurve |
mirror(IVecI center,
IVecI planeDir) |
ITrimCurve |
mul(double v) |
ITrimCurve |
mul(IDoubleI v) |
ITrimCurve |
mv(double x,
double y,
double z)
mv() is alias of add()
|
ITrimCurve |
mv(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ITrimCurve |
mv(IVecI v) |
ITrimCurve |
neg() |
void |
normalizeControlPoints()
because surface knots are normalized, control points in u-v coordinates need to be normalized too.
|
void |
normalizeControlPoints(ISurfaceI srf) |
void |
pt(double u,
IVec retval) |
IVec2I |
pt2(double u)
it returns uv coordinates.
|
void |
pt2(double u,
IVec2 retval)
it returns uv coordinates.
|
IVec2I |
pt2(IDoubleI u)
it returns uv coordinates.
|
IVec2I |
pt2d(double u)
alias
|
void |
pt2d(double u,
IVec2 retval)
alias
|
IVec2I |
pt2d(IDoubleI u)
alias
|
ITrimCurve |
ref(IVecI planeDir)
reflect(mirror) 3 dimensionally to the other side of the plane
|
ITrimCurve |
ref(IVecI center,
IVecI planeDir) |
ITrimCurve |
rev()
reverse U coordintates direction of curve, without creating a new object
|
ITrimCurve |
revU()
alias of rev()
|
ITrimCurve |
rot(double angle) |
ITrimCurve |
rot(IDoubleI angle)
rotation around z-axis and origin
|
ITrimCurve |
rot(IVecI axis,
double angle) |
ITrimCurve |
rot(IVecI axis,
IDoubleI angle)
rotation around axis vector
|
ITrimCurve |
rot(IVecI axis,
IVecI destDir)
rotate to destination direction vector
|
ITrimCurve |
rot(IVecI center,
IVecI axis,
double angle) |
ITrimCurve |
rot(IVecI center,
IVecI axis,
IDoubleI angle)
rotation around axis vector and center
|
ITrimCurve |
rot(IVecI center,
IVecI axis,
IVecI destPt)
rotate to destination point location
|
ITrimCurve |
rot2(double angle)
rotation on xy-plane around origin; same with rot(double)
|
ITrimCurve |
rot2(IDoubleI angle)
rotation on xy-plane around origin; same with rot(IDoubleI)
|
ITrimCurve |
rot2(IVecI destDir)
rotation on xy-plane to destination direction vector
|
ITrimCurve |
rot2(IVecI center,
double angle) |
ITrimCurve |
rot2(IVecI center,
IDoubleI angle)
rotation on xy-plane around center
|
ITrimCurve |
rot2(IVecI center,
IVecI destPt)
rotation on xy-plane to destination point location
|
ITrimCurve |
scale(double f) |
ITrimCurve |
scale(IDoubleI f)
same with mul
|
ITrimCurve |
scale(IVecI center,
double f) |
ITrimCurve |
scale(IVecI center,
IDoubleI f) |
ITrimCurve |
shear(double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz)
shear operation
|
ITrimCurve |
shear(IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ITrimCurve |
shear(IVecI center,
double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz) |
ITrimCurve |
shear(IVecI center,
IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ITrimCurve |
shearXY(double sxy,
double syx) |
ITrimCurve |
shearXY(IDoubleI sxy,
IDoubleI syx) |
ITrimCurve |
shearXY(IVecI center,
double sxy,
double syx) |
ITrimCurve |
shearXY(IVecI center,
IDoubleI sxy,
IDoubleI syx) |
ITrimCurve |
shearYZ(double syz,
double szy) |
ITrimCurve |
shearYZ(IDoubleI syz,
IDoubleI szy) |
ITrimCurve |
shearYZ(IVecI center,
double syz,
double szy) |
ITrimCurve |
shearYZ(IVecI center,
IDoubleI syz,
IDoubleI szy) |
ITrimCurve |
shearZX(double szx,
double sxz) |
ITrimCurve |
shearZX(IDoubleI szx,
IDoubleI sxz) |
ITrimCurve |
shearZX(IVecI center,
double szx,
double sxz) |
ITrimCurve |
shearZX(IVecI center,
IDoubleI szx,
IDoubleI sxz) |
IVec2 |
start2() |
IVec2 |
start2d()
alias
|
IVec2 |
startCP2() |
IVec2 |
startCP2d()
alias
|
ITrimCurve |
sub(double x,
double y,
double z) |
ITrimCurve |
sub(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ITrimCurve |
sub(IVecI v) |
ISurfaceI |
surface()
get surface
|
ITrimCurve |
surface(ISurfaceI srf)
Setting surface of the trim curve.
|
void |
tan(double u,
IVec retval) |
ITrimCurve |
transform(IMatrix3I mat) |
ITrimCurve |
transform(IMatrix4I mat) |
ITrimCurve |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec) |
ITrimCurve |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec,
IVecI translate) |
ITrimCurve |
translate(double x,
double y,
double z)
translate is alias of add()
|
ITrimCurve |
translate(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ITrimCurve |
translate(IVecI v) |
addCP, addCP, addCP, addCP, addCP, addCP, addCP, addCP, center, checkDuplicatedCP, checkDuplicatedCP, checkDuplicatedCP, checkDuplicatedCPOnEdge, closePt, closePt, cp, cp, cpNum, cpNum, cpNum, cps, deg, deg, deg, dist, dist, end, endCP, ep, ep, epNum, epNum, epNum, getPointsFromArray, init, init, init, init, init, insertCP, insertCP, intersectPlane, intersectPlane, isClosed, isClosed, isInside2d, isInside2d, isRational, isRational, isRational, isValid, isValidCP, isValidCP, knot, knot, knotNum, knotNum, knotNum, knots, knots, knots, len, len, len, len, mid, num, num, num, overlapCPNum, pt, pt, removeCP, removeCP, removeCP, scale1d, scale1d, scale1d, scale1d, start, startCP, tan, tan, u, u, u, u, u, u, u, u, uend, uend, uend, updateCache, ustart, ustart, ustart
createClosedCP, createClosedCPInU, createClosedCPInV, createClosedKnots, createKnots, createKnots, invertKnots, isValidKnots, normalizeKnots
createObject, parent, parent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
center, closePt, closePt, cp, cp, cpNum, cpNum, cpNum, cps, deg, deg, deg, dist, dist, end, endCP, ep, ep, epNum, epNum, epNum, isClosed, isClosed, isRational, isRational, isRational, isValid, knot, knot, knotNum, knotNum, knotNum, knots, knots, knots, len, len, len, mid, num, num, num, pt, pt, scale1d, scale1d, scale1d, scale1d, start, startCP, tan, tan, u, u, u, u, u, u, u, u, uend, uend, uend, ustart, ustart, ustart
public ISurfaceI surface
public ITrimCurve()
public ITrimCurve(IVecI[] cpts, int degree, double[] knots, double ustart, double uend)
public ITrimCurve(IVecI[] cpts, int degree, double[] knots)
public ITrimCurve(IVecI[] cpts, int degree)
public ITrimCurve(IVecI[] cpts)
public ITrimCurve(IVecI[] cpts, int degree, boolean close)
public ITrimCurve(IVecI[] cpts, boolean close)
public ITrimCurve(double x1, double y1, double x2, double y2)
public ITrimCurve(double[][] xyValues)
public ITrimCurve(double[][] xyValues, int degree)
public ITrimCurve(double[][] xyValues, boolean close)
public ITrimCurve(double[][] xyValues, int degree, boolean close)
public ITrimCurve(ICurveGeo crv)
public ITrimCurve(ICurve crv)
public ITrimCurve(ICurveI crv)
public ITrimCurve(ITrimCurve crv)
public ITrimCurve(ITrimCurve crv, ISurfaceI surf)
public ITrimCurve surface(ISurfaceI srf)
surface
in interface ITrimCurveI
public ISurfaceI surface()
ITrimCurveI
surface
in interface ITrimCurveI
public ITrimCurve dup()
public ITrimCurve get()
get
in interface ICurveI
get
in interface ICurveOp
get
in interface IParameter
get
in interface ITrimCurveI
get
in class ICurveGeo
public ICurveGeo get3d()
get3d
in interface ITrimCurveI
public void normalizeControlPoints()
public void normalizeControlPoints(ISurfaceI srf)
public void pt2(double u, IVec2 retval)
public void pt2d(double u, IVec2 retval)
public IVec2I pt2(double u)
ITrimCurveI
pt2
in interface ITrimCurveI
public IVec2I pt2d(double u)
pt2d
in interface ITrimCurveI
public IVec2I pt2(IDoubleI u)
ITrimCurveI
pt2
in interface ITrimCurveI
public IVec2I pt2d(IDoubleI u)
pt2d
in interface ITrimCurveI
public IVec2 start2()
start2
in interface ITrimCurveI
public IVec2 start2d()
start2d
in interface ITrimCurveI
public IVec2 end2()
end2
in interface ITrimCurveI
public IVec2 end2d()
end2d
in interface ITrimCurveI
public IVec2 startCP2()
startCP2
in interface ITrimCurveI
public IVec2 startCP2d()
startCP2d
in interface ITrimCurveI
public IVec2 endCP2()
endCP2
in interface ITrimCurveI
public IVec2 endCP2d()
endCP2d
in interface ITrimCurveI
public boolean isClosed()
public ITrimCurve rev()
ICurveI
public ITrimCurve revU()
public ITrimCurve flipU()
public ITrimCurve add(double x, double y, double z)
public ITrimCurve add(IDoubleI x, IDoubleI y, IDoubleI z)
public ITrimCurve add(IVecI v)
public ITrimCurve sub(double x, double y, double z)
public ITrimCurve sub(IDoubleI x, IDoubleI y, IDoubleI z)
public ITrimCurve sub(IVecI v)
public ITrimCurve mul(IDoubleI v)
public ITrimCurve mul(double v)
public ITrimCurve div(IDoubleI v)
public ITrimCurve div(double v)
public ITrimCurve neg()
public ITrimCurve flip()
public ITrimCurve add(IVecI v, double f)
public ITrimCurve add(IVecI v, IDoubleI f)
ITransformable
public ITrimCurve add(double f, IVecI v)
ICurveGeo
add
in interface ITransformable
add
in class ICurveGeo
public ITrimCurve add(IDoubleI f, IVecI v)
ITransformable
add
in interface ITransformable
add
in class ICurveGeo
public ITrimCurve rot(IDoubleI angle)
ITransformable
rot
in interface ITransformable
rot
in class ICurveGeo
public ITrimCurve rot(double angle)
rot
in interface ITransformable
rot
in class ICurveGeo
public ITrimCurve rot(IVecI axis, IDoubleI angle)
ITransformable
public ITrimCurve rot(IVecI axis, double angle)
public ITrimCurve rot(IVecI center, IVecI axis, IDoubleI angle)
ITransformable
public ITrimCurve rot(IVecI center, IVecI axis, double angle)
public ITrimCurve rot(IVecI axis, IVecI destDir)
public ITrimCurve rot(IVecI center, IVecI axis, IVecI destPt)
public ITrimCurve rot2(IDoubleI angle)
ITransformable
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve rot2(double angle)
ITransformable
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve rot2(IVecI center, IDoubleI angle)
ITransformable
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve rot2(IVecI center, double angle)
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve rot2(IVecI destDir)
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve rot2(IVecI center, IVecI destPt)
rot2
in interface ITransformable
rot2
in class ICurveGeo
public ITrimCurve scale(IDoubleI f)
public ITrimCurve scale(double f)
public ITrimCurve scale(IVecI center, IDoubleI f)
public ITrimCurve scale(IVecI center, double f)
public ITrimCurve ref(IVecI planeDir)
public ITrimCurve ref(IVecI center, IVecI planeDir)
public ITrimCurve mirror(IVecI planeDir)
public ITrimCurve mirror(IVecI center, IVecI planeDir)
public ITrimCurve shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
public ITrimCurve shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
public ITrimCurve shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
public ITrimCurve shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
public ITrimCurve shearXY(double sxy, double syx)
public ITrimCurve shearXY(IDoubleI sxy, IDoubleI syx)
public ITrimCurve shearXY(IVecI center, double sxy, double syx)
public ITrimCurve shearXY(IVecI center, IDoubleI sxy, IDoubleI syx)
public ITrimCurve shearYZ(double syz, double szy)
public ITrimCurve shearYZ(IDoubleI syz, IDoubleI szy)
public ITrimCurve shearYZ(IVecI center, double syz, double szy)
public ITrimCurve shearYZ(IVecI center, IDoubleI syz, IDoubleI szy)
public ITrimCurve shearZX(double szx, double sxz)
public ITrimCurve shearZX(IDoubleI szx, IDoubleI sxz)
public ITrimCurve shearZX(IVecI center, double szx, double sxz)
public ITrimCurve shearZX(IVecI center, IDoubleI szx, IDoubleI sxz)
public ITrimCurve translate(double x, double y, double z)
public ITrimCurve translate(IDoubleI x, IDoubleI y, IDoubleI z)
public ITrimCurve translate(IVecI v)
public ITrimCurve transform(IMatrix3I mat)
public ITrimCurve transform(IMatrix4I mat)
public ITrimCurve transform(IVecI xvec, IVecI yvec, IVecI zvec)
public ITrimCurve transform(IVecI xvec, IVecI yvec, IVecI zvec, IVecI translate)
public ITrimCurve mv(double x, double y, double z)
public ITrimCurve mv(IDoubleI x, IDoubleI y, IDoubleI z)
public ITrimCurve mv(IVecI v)
public ITrimCurve cp()
public ITrimCurve cp(double x, double y, double z)
public ITrimCurve cp(IDoubleI x, IDoubleI y, IDoubleI z)
ICurveGeo
public ITrimCurve cp(IVecI v)
ICurveGeo