Click or drag to resize

MarchingSquaresDetectSquares Method

Marching squares over the given domain using the mesh defined via the dimensions (wid,hei) to build a set of polygons such that f(x,y) less than 0, using the given number 'bin' for recursive linear inteprolation along cell boundaries. if 'comb' is true, then the polygons will also be composited into larger possible concave polygons.

Namespace: Internal.Physics2D.Common.TextureTools
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static List<Vertices> DetectSquares(
	AABB domain,
	float cellWidth,
	float cellHeight,
	sbyte[,] f,
	int lerpCount,
	bool combine
)

Parameters

domain  AABB
cellWidth  Single
cellHeight  Single
f  SByte
lerpCount  Int32
combine  Boolean

Return Value

ListVertices
See Also