未验证 提交 1a7b7c5e 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15093 from hassadee/dev

Add STL exporter in binary format to menu bar
......@@ -266,7 +266,7 @@ Menubar.File = function ( editor ) {
} );
options.add( option );
// Export STL
// Export STL (ASCII)
var option = new UI.Row();
option.setClass( 'option' );
......@@ -280,6 +280,20 @@ Menubar.File = function ( editor ) {
} );
options.add( option );
// Export STL (Binary)
var option = new UI.Row();
option.setClass( 'option' );
option.setTextContent( 'Export STL (Binary)' );
option.onClick( function () {
var exporter = new THREE.STLExporter();
saveArrayBuffer( exporter.parse( editor.scene, { binary: true } ), 'model-binary.stl' );
} );
options.add( option );
//
options.add( new UI.HorizontalRule() );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册