File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111import * as constants from '../core/constants' ;
1212import { DataArray } from './p5.DataArray' ;
1313import { Vector } from '../math/p5.Vector' ;
14+ import { downloadFile } from '../io/utilities' ;
1415
1516class Geometry {
1617 constructor ( detailX , detailY , callback , renderer ) {
@@ -413,7 +414,7 @@ class Geometry {
413414 } ) ;
414415
415416 const blob = new Blob ( [ objStr ] , { type : 'text/plain' } ) ;
416- fn . downloadFile ( blob , fileName , 'obj' ) ;
417+ downloadFile ( blob , fileName , 'obj' ) ;
417418
418419 }
419420
@@ -536,7 +537,7 @@ class Geometry {
536537 modelOutput += 'endsolid ' + name + '\n' ;
537538 }
538539 const blob = new Blob ( [ modelOutput ] , { type : 'text/plain' } ) ;
539- fn . downloadFile ( blob , fileName , 'stl' ) ;
540+ downloadFile ( blob , fileName , 'stl' ) ;
540541 }
541542
542543 /**
You can’t perform that action at this time.
0 commit comments