use of maspack.geometry.Vertex3d in project artisynth_core by artisynth.
the class CutPlaneProbe method drawContour.
protected void drawContour(Vertex3d[] contour, Renderer renderer, boolean selected) {
float[] coords0 = new float[3];
float[] coords1 = new float[3];
float[] tmp;
Vertex3d a = contour[0];
Vertex3d b;
getRenderCoords(coords0, a.getWorldPoint());
for (int i = 1; i < contour.length; i++) {
b = contour[i];
getRenderCoords(coords1, b.getWorldPoint());
renderer.drawLine(myRenderProps, coords0, coords1, selected);
// swap
a = b;
tmp = coords0;
coords0 = coords1;
coords1 = tmp;
}
}
Aggregations