toPoints method

  1. @override
List<Point3D> toPoints()

Converts model to a List of Point3D.

Implementation

@override
List<Point3D> toPoints() {
  List<Point3D> points = [];
  for (var i = 0; i < sphereVertices.length / 3; i++) {
    points.add(Point3D(sphereVertices[i].toVM64(), color: color));
  }
  return points.toSet().toList();
}