Unit AdPolygonUtils

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains a simple function to triangulate a given polygon.

Overview

Functions and Procedures

function PointInTriangle(const ap1, tp1, tp2, tp3 : TAdPoint): boolean;
function Triangulate(const APolygon: TAdPolygon; var ATriangles: TAdTriangles):boolean;

Description

Functions and Procedures

function PointInTriangle(const ap1, tp1, tp2, tp3 : TAdPoint): boolean;

Returns whether a point lies inside a triangle. ap1 specifies the point, tp1, tp2 and tp3 the triangle points.

function Triangulate(const APolygon: TAdPolygon; var ATriangles: TAdTriangles):boolean;

Triangulates the given polygon. The polygon must not contain any intersections or holes/islands.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00