Skip to content

triangulate_constraints_and_merge_duplicates can panic #389

@KnstAnt

Description

@KnstAnt

triangulate_constraints_and_merge_duplicates uses function bulk_load_cdt that can be panic.

let cdt_triangulation = ConstrainedDelaunayTriangulation::bulk_load_cdt(planar_points, edges)?;

May be it posible to replace it for non-panic wersion try_bulk_load_cdt? Somthing about

let mut conflicting_edges = Vec::new();
let cdt_triangulation =
        ConstrainedDelaunayTriangulation::try_bulk_load_cdt(planar_points, edges, |e| {
            conflicting_edges.push(e)
        })?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions