Whats The Best Way to Convert Surface of Points to a Surface?

I was thinking of creating an algorithm that would map the points to Face3s to create a sort of tessellated surface. Is there a better way? I was thinking of using a parametric surface but not totally sure how to go about that. Any suggestions?

-Amit

Maybe something like https://threejs.org/examples/webgl_geometry_nurbs.html or https://bl.ocks.org/grahampullan/b3beb793b10382c13f7a34c843156a8c?

This really depends heavily on the expected structure of the points, so you may need to describe in more detail what you’re doing. For totally random points in 3D space, there’s no guaranteed mapping to a surface.

Three ways of doing this of the top of my head:

  1. A convex hull might work. I’m not sure if it accepts arbitrary points, but you certainly won’t get good results from all possibilities.

  2. A parametric surface means that you are using a mathematical function to generate the points. If that’s what you’re doing then check out ParametricGeometries.js and the related example.

  3. Manually generate the geometry. Make sure the number of points is divisible by 3 and then use them to create a BufferGeometry (see this example). You can either calculate the normals manually or use BufferGeometry.computeVertexNormals.