toLines method

  1. @override
List<Line3D> toLines()

Converts model to a List of Line3D.

Implementation

@override
List<Line3D> toLines() {
  List<Line3D> lines = [];
  for (var i = 0; i < sphereVertices.length / 2; i += 2) {
    lines.add(Line3D(
      sphereVertices[i].toVM64(),
      sphereVertices[i + 1].toVM64(),
    ));
  }
  return lines.toSet().toList();
}