View Issue Details

IDProjectCategoryView StatusLast Update
0009761New Feature Requests[All Projects] Generalpublic2017-11-15 19:41
ReporterCrosRoad95Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0009761: [Request] Auto calc position of ColShape.Polygon
Description

ColShape.Polygon at first and second argument need position of this polygon. I saw in source code that this argument are very important for optimization so i request to add option to auto calc perfect center of all vertex.

It can help newbie to increse performance of they scripts

Steps To Reproduce

current

local vert={1,2,3,4,5,6,7,8}
local s1,s2=0,0
local s3=0
for i=1,#vert,2 do
    local v1,v2=tonumber(vert[i]),tonumber(vert[i+1])
    s1=s1+v1
    s2=s2+v2
    s3=s3+1
end
ColShape.Polygon(s1/s3,s2/s3,unpack(vert))

requested:

local vert={1,2,3,4,5,6,7,8}
ColShape.Polygon(true,true,unpack(vert))
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change