opengl es - cubegeometry diagonal issue in three js -


i need create cubegeometry wireframe without diagonals, used boxhelper cannot color cube. can 1 suggest me how color cube using boxhelper.

you have several options. here patterns follow:

var mesh = new three.mesh( new three.boxgeometry( 10, 10, 10 ), new three.meshnormalmaterial() ); //scene.add( mesh ); // optional  var helper = new three.boxhelper( mesh ); helper.material.color.set( 0x00ffff ); scene.add( helper );  // alternate method var helper = new three.edgeshelper( mesh, 0xff0000 ); scene.add( helper ); 

here fiddle you: http://jsfiddle.net/lv2jselb/

enter image description here

note: cubegeometry has been renamed boxgeometry.

three.js r.84


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -