From 9b4f9a792f34b3c6ca291ad23da1efe4711687f4 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Wed, 18 Apr 2012 14:28:43 -0700 Subject: re-enable dragging and editing of anchor point handles for bezier path editing in 3D --- js/lib/geom/anchor-point.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/lib/geom/anchor-point.js') diff --git a/js/lib/geom/anchor-point.js b/js/lib/geom/anchor-point.js index 0e9f65ea..d254681c 100755 --- a/js/lib/geom/anchor-point.js +++ b/js/lib/geom/anchor-point.js @@ -221,6 +221,10 @@ GLAnchorPoint.prototype.getNext = function() { return [this._nextX, this._nextY, this._nextZ]; }; +GLAnchorPoint.prototype.getAllPos = function() { + return [[this._prevX, this._prevY, this._prevZ],[this._x, this._y, this._z],[this._nextX, this._nextY, this._nextZ]]; +}; + //return the square of distance from passed in point to the anchor position GLAnchorPoint.prototype.getDistanceSq = function (x, y, z) { return (this._x - x) * (this._x - x) + (this._y - y) * (this._y - y) + (this._z - z) * (this._z - z); -- cgit v1.2.3