Custom new custom 3D object with coordinates

Hello,

I cant find an example how draw my custom 3D object with coordinates.
So, ideally, add multiple X, Y and Z coordinates, everything would connects and fill with color.

For example, a letter “Z” in 3D (not a text), as custom 3D object with coordinates.

It is possible?

Thanks.

1 Like

One more or less obvious issue here: How do you define which vertices build a face? Just having a bunch of points is not enough to render a shape.

You can compute the convex hull around this set of points and generate a geometry via ConvexGeometry like demonstrated in this example:

https://threejs.org/examples/webgl_geometry_convex

But as you can see, it’s an enclosing shape around the points. If you have a set of points representing the vertices of a letter (e.g. “Z”), it’s not possible to use this approach in order to get the intended shape. The required faces have to be defined manually.