0

I want to render a mesh with curved surfaces like in this image:

desired result

Using the EdgesHelper I got this

enter image description here

or, increasing the number of faces and the thresholdAngle of the EdgeHelper: enter image description here

Any idea?

Emanuele Spatola
  • 555
  • 3
  • 10

1 Answers1

0

I found a solution! Following this suggestions Three.js outlines

I used the EdgeHelper plus:

var outline_mat = new THREE.MeshBasicMaterial({color : 0x000000, side: THREE.BackSide});
var outline = new THREE.Mesh(mesh.geometry, outline_mat);
outline.scale.multiplyScalar(1.02);
scene.add(outline);

result: enter image description here

Community
  • 1
  • 1
Emanuele Spatola
  • 555
  • 3
  • 10