zone.condition

Syntax

f := zone.condition(z,i)

Note

  • In the description below, the following correspondence is assumed between 3D and 2D analysis:
    • 3D volumes <-> 2D areas

Get the zone condition number. This is a general value indicating how geometrically well formed the zone is. A value of 1.0 indicates a perfect shape (e.g., a cube in 3D, square or perfect triangle in 2D, etc.) A value of 0.0 indicates an unusable zone.

Returns:

f - zone condition value

Arguments:

z - zone pointer

i - index indicating the zone condition measure to use.

if i = 0, the function returns the minimum value among the parameters describes below;

if i = 1, the function returns the measurement of aspect ratio, zone.condition (z, 1) = zone.aspect (z);

if i = 2, the function returns the measurement of volume (in 3D) or area (in 2D) ratio;

if i = 3, the function returns the measurement of orthogonality, zone.condition (z, 3) = zone.ortho (z);

if i = 4, the function returns the measurement of 2D geometric shape quality (2D ONLY).

Note that if a quadrilateral zone is concave, the value of geometric shape quality is multiplied by -1, and the function returns a negative value (only for this FISH function). Thus, one can use this test to locate concave zones.

See zone geometry-test for more explanations.