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 11
11
import * as constants from '../core/constants' ;
12
12
import { DataArray } from './p5.DataArray' ;
13
13
import { Vector } from '../math/p5.Vector' ;
14
+ import { downloadFile } from '../io/utilities' ;
14
15
15
16
class Geometry {
16
17
constructor ( detailX , detailY , callback , renderer ) {
@@ -413,7 +414,7 @@ class Geometry {
413
414
} ) ;
414
415
415
416
const blob = new Blob ( [ objStr ] , { type : 'text/plain' } ) ;
416
- fn . downloadFile ( blob , fileName , 'obj' ) ;
417
+ downloadFile ( blob , fileName , 'obj' ) ;
417
418
418
419
}
419
420
@@ -536,7 +537,7 @@ class Geometry {
536
537
modelOutput += 'endsolid ' + name + '\n' ;
537
538
}
538
539
const blob = new Blob ( [ modelOutput ] , { type : 'text/plain' } ) ;
539
- fn . downloadFile ( blob , fileName , 'stl' ) ;
540
+ downloadFile ( blob , fileName , 'stl' ) ;
540
541
}
541
542
542
543
/**
You can’t perform that action at this time.
0 commit comments