Skip to content

Error on overlapping points #1

Description

@JeremyVansnick

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: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:

2018-01-30_14-24-57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions