Click or drag to resize
Ab4d.SharpEngine logo

TriangulatorProject3DPositionTo2D(Vector3, Int32) Method

Returns an array of 2D points that are created by projecting the 3D positions onto the xy, xz or yz plane (removing one of the coordinates). The plane is determined by checking the normal of the first triangle and determining which component of the normal vector is the biggest (this coordinate is removed). This requires that the positions lie on the same plane. Input positions and polygonIndices must not be null or have less than 3 elements.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector2[] Project3DPositionTo2D(
	Vector3[] positions,
	int[] polygonIndices
)

Parameters

positions  Vector3
Array of 3D positions
polygonIndices  Int32
triangle indexes of positions that define the positions that will be used in this method

Return Value

Vector2
Array of 2D positions
See Also