Module Clpr.ClipperD

Clipping (boolean) operations on float paths/polygons

type t

the core class of Clipper2 (float edition)

val make : ?precision:int -> unit -> t
val add_subject : t -> PathsD.t -> unit
val add_open_subject : t -> PathsD.t -> unit
val add_clip : t -> PathsD.t -> unit
val execute : ?fill_rule:fill_rule -> ?open_solution:PathsD.t -> op:clip_type -> solution:PathsD.t -> t -> (unit, string) Stdlib.result
val execute_tree : ?fill_rule:fill_rule -> ?open_solution:PathsD.t -> op:clip_type -> solution:PolyTreeD.t -> t -> (unit, string) Stdlib.result
val get_preserve_collinear : t -> bool
val set_preserve_collinear : t -> bool -> unit
val get_reverse_solution : t -> bool
val set_reverse_solution : t -> bool -> unit
val clear : t -> unit