mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 20:33:30 +01:00
no more face scaling
This commit is contained in:
parent
908e46aec9
commit
9763c763ea
1 changed files with 2 additions and 1 deletions
|
|
@ -296,7 +296,8 @@ TCAD.App2D.prototype.getSketchId = function() {
|
|||
|
||||
TCAD.App2D.prototype.makePolygon = function(points, layer) {
|
||||
var n = points.length;
|
||||
var k = magic_k;
|
||||
// var k = magic_k;
|
||||
var k = 1;
|
||||
var bounds = [Number.MAX_VALUE, Number.MAX_VALUE, - Number.MAX_VALUE, - Number.MAX_VALUE];
|
||||
for ( var p = n - 1, q = 0; q < n; p = q ++ ) {
|
||||
var seg = this.viewer.addSegment(k*points[p].x, k*points[p].y, k*points[q].x, k*points[q].y, layer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue