|
|
|
@ -82,6 +82,13 @@ class Triangle: |
|
|
|
var points = points() |
|
|
|
var points = points() |
|
|
|
return (points[0].point3d() + points[1].point3d() + points[2].point3d()) / 3.0 |
|
|
|
return (points[0].point3d() + points[1].point3d() + points[2].point3d()) / 3.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func set_elevation(elevation:float): |
|
|
|
|
|
|
|
for point in points(): |
|
|
|
|
|
|
|
point.set_elevation(elevation) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func get_elevation(): |
|
|
|
|
|
|
|
return center3d().y |
|
|
|
|
|
|
|
|
|
|
|
func polygon(): |
|
|
|
func polygon(): |
|
|
|
var polygon = [] |
|
|
|
var polygon = [] |
|
|
|
for point in points(): |
|
|
|
for point in points(): |
|
|
|
|