Dart Documentationorson_chartsZOrderComparator

ZOrderComparator class

A comparator that compares two faces and orders them by their average z-value. This is used to paint faces from furthest to nearest.

Constructors

new ZOrderComparator(List<Point3D> _points) #

Creates a new instance.

Methods

int compare(Face f1, Face f2) #

Compares the average z-values of f1 and f2 and returns 1 if the result for f1 is greater than f2, 0 if they are the same, and -1 if the result for f1 is less than f2.