Skip to content

editorGlobalsAddCollinearPoints

Class: AddCollinearPoints

With respect to all other polygons, add collinear points to a polygon so that no point of all polygons lies on an edge of the polygon but on a vertex.

Hierarchy

  • AddCollinearPoints

Index

Methods

Methods

Static Private _pointIsOnLineBetween

_pointIsOnLineBetween(start: Vector3, end: Vector3, point: Vector3): boolean

Defined in src/util/Polygon3DFixing/AddCollinearPoints.ts:37

Return true iff point is not equal to one of the edge points and lies on the line (or close to it).

Parameters:

Name Type Description
start Vector3 -
end Vector3 -
point Vector3 -

Returns: boolean


Static execute

execute(polygon: VectorPolygon3D, allOtherPoints: Vector3[]): VectorPolygon3D

Defined in src/util/Polygon3DFixing/AddCollinearPoints.ts:10

Parameters:

Name Type
polygon VectorPolygon3D
allOtherPoints Vector3[]

Returns: VectorPolygon3D