public class ExactWrapPath
extends java.lang.Object
Constructor and Description |
---|
ExactWrapPath()
Create a new empty path with 3 segments.
|
ExactWrapPath(int n)
Create a new empty path with n segments.
|
ExactWrapPath(Point3d[] points,
Vector3d[] tangents,
int n,
boolean world)
Create a new path from the given points.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addDrawPoint(Point3d p)
Adds the given point to the list of draw points.
|
void |
applyForces(double F) |
java.util.ArrayList<Point3d> |
getAllABPoints() |
java.util.ArrayList<Point3d> |
getDrawPoints()
Returns the list of draw points.
|
double |
getLength()
Get the length of the path.
|
double |
getLengthDot()
Returns time derivative of the length.
|
int |
getNumPoints()
Get the number of points in this path.
|
int |
getNumSegments()
Get the number of segments in this path.
|
artisynth.demos.wrapping.ExactWrapPath.WrapPoint |
getPoint(int i)
Get a point on the path.
|
Point3d |
getRefPoint()
Get reference point.
|
artisynth.demos.wrapping.ExactWrapPath.WrapSegment |
getSegment(int i)
Get a segment from the path.
|
void |
renderPath(Renderer renderer,
RenderProps props)
Renders this path.
|
void |
setRefPoint(Point3d pnt)
Sets the reference point.
|
public ExactWrapPath()
public ExactWrapPath(int n)
n
- number of segments in the pathpublic ExactWrapPath(Point3d[] points, Vector3d[] tangents, int n, boolean world)
points
- points on the path (these points will be changed if they
are input in world coordinates)tangents
- path tangents at the points (world frame)n
- number of pointsworld
- true if the points are in world coordinatespublic int getNumPoints()
public int getNumSegments()
public artisynth.demos.wrapping.ExactWrapPath.WrapPoint getPoint(int i)
i
- index of the pointpublic artisynth.demos.wrapping.ExactWrapPath.WrapSegment getSegment(int i)
i
- index of the segmentpublic double getLength()
public double getLengthDot()
public void applyForces(double F)
public boolean addDrawPoint(Point3d p)
p
- the point to add (in world frame)public java.util.ArrayList<Point3d> getDrawPoints()
public java.util.ArrayList<Point3d> getAllABPoints()
public void renderPath(Renderer renderer, RenderProps props)
renderer
- renderer to use for drawingprops
- render propertiespublic Point3d getRefPoint()
public void setRefPoint(Point3d pnt)