Line constructor

Line(
  1. BufferGeometry? geometry,
  2. Material? material
)

geometry — vertices representing the line segment(s). Default is a new BufferGeometry.

material — material for the line. Default is a new LineBasicMaterial.

Implementation

Line(BufferGeometry? geometry, Material? material) : super() {
  this.geometry = geometry ?? BufferGeometry();
  this.material = material ?? LineBasicMaterial(<MaterialProperty, dynamic>{});
  type = "Line";
  updateMorphTargets();
}