File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ Menubar.File = function ( editor ) {
266266 } ) ;
267267 options . add ( option ) ;
268268
269- // Export STL
269+ // Export STL (ASCII)
270270
271271 var option = new UI . Row ( ) ;
272272 option . setClass ( 'option' ) ;
@@ -280,6 +280,20 @@ Menubar.File = function ( editor ) {
280280 } ) ;
281281 options . add ( option ) ;
282282
283+ // Export STL (Binary)
284+
285+ var option = new UI . Row ( ) ;
286+ option . setClass ( 'option' ) ;
287+ option . setTextContent ( 'Export STL (Binary)' ) ;
288+ option . onClick ( function ( ) {
289+
290+ var exporter = new THREE . STLExporter ( ) ;
291+
292+ saveArrayBuffer ( exporter . parse ( editor . scene , { binary : true } ) , 'model-binary.stl' ) ;
293+
294+ } ) ;
295+ options . add ( option ) ;
296+
283297 //
284298
285299 options . add ( new UI . HorizontalRule ( ) ) ;
You can’t perform that action at this time.
0 commit comments