Polygon3D constructor
Polygon3D({
- List<
Offset> ? points, - double height = 1.0,
- String material = '',
- Color color = defaultColor,
- double metallic = 0.0,
- double roughness = 0.75,
- Color emission = const Color(0xFF000000),
- double emissionStrength = 1.0,
- double opacity = 1.0,
- bool unlit = false,
- String texture = '',
- Vector2? tiling,
- bool tileInMetres = false,
- bool castShadows = true,
- 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);