To avoid duplicate issues in your geometry, consider removing them before proceeding with the triangulation process. Alternatively, you can opt to utilize a different triangulation library such as earcut.js
.
Earcut is known for being less susceptible to flaws in the geometry definition, such as duplicate points or intersecting edges. If you are interested in switching to a different triangulation library, I have created an adapter that can be accessed and downloaded from GitHub.
Simply download the required dependencies and initialize the adapter by using the following code:
THREE.Triangulation.setLibrary( THREE.Triangulation.libraries.earcut );
By transitioning to earcut, you may also experience a performance boost.
Note: If your geometry appears to be in good shape, you can choose to disregard these error messages and proceed without any major concerns.