[This is preliminary documentation and is subject to change.]

The maximum distance the edges of the mesh should deviate from the source geometry. [Limit: >=0] [Units: World]

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: (


 C#  Visual Basic  Visual C++ 
public float EdgeMaxDeviation { get; set; }
Public Property EdgeMaxDeviation As Single
property float EdgeMaxDeviation {
	float get ();
	void set (float value);


The Douglas–Peucker algorithm is used when simplifying the borders of the mesh. This parameter effects how much simplification occurs. A higher number will result in more lost detail, but also fewer unnecessary polygons around the border. A good place to start is between 1.1 and 1.5. Low values, especially zero (no simplification), are not recommended since they can result in a large number of small triangles around the border.

Applies only to the xz-plane.

See Also