diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2021-01-12 13:41:00 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2021-01-12 14:07:56 +0100 |
commit | 228eceeed40b0f86e75a394fe8d65e6e93ca2370 (patch) | |
tree | 1409c2d9aa6924a35464e30af78e7281502ab36e /script.it/selection.mli | |
parent | 1aa90219e3e74bac3afbde0ec120e098b50bd0c5 (diff) |
Move path, some refactoring
Diffstat (limited to 'script.it/selection.mli')
-rwxr-xr-x | script.it/selection.mli | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/script.it/selection.mli b/script.it/selection.mli index 984eae6..9792a2d 100755 --- a/script.it/selection.mli +++ b/script.it/selection.mli @@ -1,6 +1,8 @@ -type t = - | Path of int - | Point of (int * Path.Point.t) +type 'a selection = + | Path of 'a + | Point of ('a * Path.Point.t) + +type t = int selection val threshold : float @@ -19,5 +21,13 @@ val get_from_paths val select_path : Outline.t -> t +(** Check for selecting a point on the given outline. + + If no point is available, select the path. + +*) val select_point : Outline.t -> Gg.v2 -> t + +val find_selection + : int selection -> Outline.t list -> Outline.t selection option |