diff options
author | Pushkar Joshi | 2012-03-23 14:32:46 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-23 14:32:46 -0700 |
commit | 9b7dac9215fbd7c0fe7a80d3e8f1ff378332fec3 (patch) | |
tree | cf0cad815fe98ee8d493cbf42c4d8e13a3e0aaac /js/lib/geom/sub-path.js | |
parent | 92bc54df4acfec849568ab619150a5da49c087fa (diff) | |
download | ninja-9b7dac9215fbd7c0fe7a80d3e8f1ff378332fec3.tar.gz |
Almost working version of brush tool that uses only local coordinates to store the brush stroke points. Current version does not yet update the width and height of the brush stroke canvas upon changing the brush stroke through the PI. Also, current version does not obtain 3D position of points properly from the drawing tool base (see BrushTool _getUnsnappedPosition)
Diffstat (limited to 'js/lib/geom/sub-path.js')
-rwxr-xr-x | js/lib/geom/sub-path.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/sub-path.js b/js/lib/geom/sub-path.js index e95be0e7..7046673e 100755 --- a/js/lib/geom/sub-path.js +++ b/js/lib/geom/sub-path.js | |||
@@ -1203,7 +1203,7 @@ GLSubpath.prototype.getNearVertex = function( eyePt, dir ){ | |||
1203 | bboxDim[1] = 0.5 * (this._BBoxMax[1] - this._BBoxMin[1]); | 1203 | bboxDim[1] = 0.5 * (this._BBoxMax[1] - this._BBoxMin[1]); |
1204 | bboxMid[1] = 0.5 * (this._BBoxMax[1] + this._BBoxMin[1]); | 1204 | bboxMid[1] = 0.5 * (this._BBoxMax[1] + this._BBoxMin[1]); |
1205 | bboxDim[2] = 0.5 * (this._BBoxMax[2] - this._BBoxMin[2]); | 1205 | bboxDim[2] = 0.5 * (this._BBoxMax[2] - this._BBoxMin[2]); |
1206 | bboxMid[3] = 0.5 * (this._BBoxMax[2] + this._BBoxMin[2]); | 1206 | bboxMid[2] = 0.5 * (this._BBoxMax[2] + this._BBoxMin[2]); |
1207 | 1207 | ||
1208 | // convert the stroke vertices into normalized device coordinates | 1208 | // convert the stroke vertices into normalized device coordinates |
1209 | var world = this.getWorld(); | 1209 | var world = this.getWorld(); |