mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Zone.lua
- Fixed ZONE_POLYGON:New called without initial points
This commit is contained in:
parent
bc3a5271dc
commit
f789fbac70
@ -2380,13 +2380,13 @@ function ZONE_POLYGON_BASE:New( ZoneName, PointsArray )
|
|||||||
self._.Polygon[i].y = PointsArray[i].y
|
self._.Polygon[i].y = PointsArray[i].y
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
-- triangulate the polygon so we can work with it
|
-- triangulate the polygon so we can work with it
|
||||||
self._Triangles = self:_Triangulate()
|
self._Triangles = self:_Triangulate()
|
||||||
-- set the polygon's surface area
|
-- set the polygon's surface area
|
||||||
self.SurfaceArea = self:_CalculateSurfaceArea()
|
self.SurfaceArea = self:_CalculateSurfaceArea()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user