From 58ca374fab6dd90c4d7415bdcc98add002274894 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sat, 21 Nov 2020 11:23:16 +0100 Subject: Move polygon functions into own mod The math module was starting to be mostly polygon files and functions, so those got their own subfolder to make the math module less of a mess. --- src/math/triangulate.rs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/math/triangulate.rs (limited to 'src/math/triangulate.rs') diff --git a/src/math/triangulate.rs b/src/math/triangulate.rs deleted file mode 100644 index 8ef92f1..0000000 --- a/src/math/triangulate.rs +++ /dev/null @@ -1,12 +0,0 @@ -//! Module for turning a polygon into a number of non-overlapping triangles. - -use super::{Polygon, Triangle}; -use nalgebra::Scalar; - -/// Uses earclipping algorithm (see https://www.geometrictools.com/Documentation/TriangulationByEarClipping.pdf) -/// to find an explanation of what exactly is happening. -/// Currently only handles simple polygons, but once the polygon struct supports holes must be -/// extended to also support those. -pub fn triangulate(_polygon: &Polygon) -> Vec> { - unimplemented!() -} -- cgit v1.2.3-70-g09d2