Triangulation sphere with holes

I don’t know what you mean exactly.

The addon does not generate a model like software like Blender.

The addon creates an indexed BufferGeometry directly. Just like three.js does with a sphere or a cylinder etc… But the algorithm and the calculation is much more complex.

Because the calculation takes time, I created the script https://github.com/hofk/THREEi.js/blob/61ba83531881d9c6f7a5125dec63a27410ea3f50/examples/triangulationImplicitSurfaceExportGeo.html.
This exports the attribute fields: Positions and indexes.
You get a complete three.js definition. You can copy these into your project and have the BufferGeometry ( object, form, … ) without calculating.

The last paragraph in the readme describes this. https://github.com/hofk/THREEi.js/blob/master/README.md

This concerns triangulation.


Triangulation of Implicit Surfaces …

Algorithm modified.

The implicit surfaces are defined in separate js files. See examples folder.


I’m still working on the export for the sphere with holes. In addition there are cylinders and torus with holes.

1 Like