Polygon3D constructor

Polygon3D({
  1. List<Offset>? points,
  2. double height = 1.0,
  3. String material = '',
  4. Color color = defaultColor,
  5. double metallic = 0.0,
  6. double roughness = 0.75,
  7. Color emission = const Color(0xFF000000),
  8. double emissionStrength = 1.0,
  9. double opacity = 1.0,
  10. bool unlit = false,
  11. String texture = '',
  12. Vector2? tiling,
  13. bool tileInMetres = false,
  14. bool castShadows = true,
  15. bool visible = true,
})

A prism through points (a hexagon 1 m across when none are given), 1 m tall by default.

Implementation

Polygon3D({
  List<Offset>? points,
  this.height = 1.0,
  super.material,
  super.color,
  super.metallic,
  super.roughness,
  super.emission,
  super.emissionStrength,
  super.opacity,
  super.unlit,
  super.texture,
  super.tiling,
  super.tileInMetres,
  super.castShadows,
  super.visible,
}) : points = points ?? regular(6, 0.5);