Tuesday, 15 February 2011

Three.js Wireframe without diagonals -



Three.js Wireframe without diagonals -

i'm trying render geometries without diagonals. here plane illustration (attached) explain: left plane get, right plane looking for. possible anyhow?

if going utilize plane geometry, can seek out next link...

edgehelper

var geometry = new three.planegeometry(10, 10, 10,10); var material = new three.meshlambertmaterial({color:0xff0000,opacity:0.2,transparent:true,overdraw:0.5}); (var = 0; < 1; ++) { var mesh = new three.mesh(geometry, material); mesh.position.x = i*20; mesh.position.y = 0;//math.random()*20-(1*i); mesh.position.z = 0//-59;//math.random()*20 - 100; mesh.rotation.x = math.random(); mesh.rotation.y = math.random(); scene.add(mesh);

check link..

three.js

No comments:

Post a Comment