triangulation

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package triangulation provides utilities for creating Delaunay triangulations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Area

func Area(polygon []delaunay.Point) int

Area returns the area of a convex polygon. Adapted from: https://www.geeksforgeeks.org/area-of-a-polygon-with-given-n-ordered-vertices/.

func Triangulate

func Triangulate(points normgeom.NormPointGroup, w, h int) []geom.Triangle

Triangulate creates a Delaunay triangulation from a group of points and returns a set of triangles.

Types

This section is empty.

Directories

Path Synopsis
Package incrdelaunay implements a library for incremental Delaunay triangulation, with support for dynamically adding and removing points.
Package incrdelaunay implements a library for incremental Delaunay triangulation, with support for dynamically adding and removing points.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL