Crate rdp

Source
Expand description

This crate provides FFI functions for accessing the Ramer–Douglas–Peucker and Visvalingam-Whyatt line simplification algorithms

Structs§

ExternalArray
A C-compatible struct originating outside Rust used for passing arrays across the FFI boundary
InternalArray
A C-compatible struct originating inside Rust used for passing arrays across the FFI boundary

Functions§

drop_float_array
Free memory which has been allocated across the FFI boundary by:
drop_usize_array
Free memory which has been allocated across the FFI boundary by:
simplify_rdp_ffi
FFI wrapper for RDP, returning simplified geometry coordinates
simplify_rdp_idx_ffi
FFI wrapper for RDP, returning simplified geometry indices
simplify_visvalingam_ffi
FFI wrapper for Visvalingam-Whyatt, returning simplified geometry coordinates
simplify_visvalingam_idx_ffi
FFI wrapper for Visvalingam-Whyatt, returning simplified geometry indices
simplify_visvalingamp_ffi
FFI wrapper for topology-preserving Visvalingam-Whyatt, returning simplified geometry coordinates.