提交 cbdaa9fa 编写于 作者: M Mr.doob

Editor: Expose BoundingSphere radius.

上级 00cd9a27
......@@ -125,6 +125,11 @@ Sidebar.Geometry = function ( editor ) {
container.add( geometryNameRow );
// parameters
var parameters = new UI.Span();
container.add( parameters );
// geometry
container.add( new Sidebar.Geometry.Geometry( editor ) );
......@@ -133,11 +138,12 @@ Sidebar.Geometry = function ( editor ) {
container.add( new Sidebar.Geometry.BufferGeometry( editor ) );
// parameters
// size
var parameters = new UI.Span();
container.add( parameters );
var geometryBoundingSphere = new UI.Text();
container.add( new UI.Text( 'Bounds' ).setWidth( '90px' ) );
container.add( geometryBoundingSphere );
//
......@@ -170,6 +176,8 @@ Sidebar.Geometry = function ( editor ) {
}
geometryBoundingSphere.setValue( Math.floor( geometry.boundingSphere.radius * 1000 ) / 1000 );
} else {
container.setDisplay( 'none' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册