Tube from 3d points

Get points from a THREE.Path() of two .absarc(), and use THREE.LatheGeometry :thinking:
For example: Selective Bloom (parts of a single geometry)

function CapsuleGeom(R, L){

  let path = new THREE.Path();
  path.absarc(0, 0, R, Math.PI * 1.5, 0);
  path.absarc(0, L, R, 0, Math.PI * 0.5);
  
  let pts = path.getPoints(5);
  
  let g = new THREE.LatheBufferGeometry(pts);
  
  return g;
}
1 Like