javascript - Select Hexagonal Face in OctahedronGeometry THREE.js -
i have geodesic sphere - created using three.octahedrongeometry
- group triangular faces hexagonal faces, can selected. i'm @ loss how approach problem or if it's feasible. insight appreciated.
here's example:
creategeodesicsphere =-> geometry = new three.octahedrongeometry(200, 3) material = new three.meshbasicmaterial({ color : 0xffffff, shading : three.flatshading, side : three.doubleside, vertexcolors : three.facecolors, overdraw : true }) # explode geometry each face has unique vertices explodemodifier = new three.explodemodifier() explodemodifier.modify(geometry) geodesicmesh = new three.mesh(geometry , material) geodesicfaces = geometry.faces in [0..geodesicfaces.length-1] geodesicfaces[i].color.setrgb(math.random(), math.random(), math.random()) geodesicmesh.position.x = 0 geodesicmesh.position.y = 0 geodesicmesh.position.z = 0 scene.add(geodesicmesh)
most not possible can try voronoi diagram close hexagon:spherical voronoi tessellation java 7: need fix winding vertices around faces.
Comments
Post a Comment