Shape-Editor-Tool
Shape-Editor-Tool copied to clipboard
Error on overlapping points
If you perfectly overlap 2 points of a shape you get this error:
"Error triangulating mesh. Aborted. UnityEngine.Debug:LogError(Object) Sebastian.Geometry.Triangulator:Triangulate() (at Assets/Scripts/Geometry/Triangulator.cs:72) Sebastian.Geometry.CompositeShapeData:.ctor(Vector3[]) (at Assets/Scripts/Geometry/CompositeShapeData.cs:33) Sebastian.Geometry.CompositeShape:<Process>m__1(ShapeMesh) (at Assets/Scripts/Geometry/CompositeShape.cs:42) System.Linq.Enumerable:ToArray(IEnumerable`1) Sebastian.Geometry.CompositeShape:Process() (at Assets/Scripts/Geometry/CompositeShape.cs:42) Sebastian.Geometry.CompositeShape:GetMesh() (at Assets/Scripts/Geometry/CompositeShape.cs:29) ShapeMesh:UpdateMeshDisplay() (at Assets/Scripts/ShapeMesh.cs:61) ShapeCreatorEditor:Draw() (at Assets/Scripts/JeyTools/Editor/ShapeCreatorEditor.cs:784) ShapeCreatorEditor:OnSceneGUI() (at Assets/Scripts/JeyTools/Editor/ShapeCreatorEditor.cs:160) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
Here's a gif showing the issue: