Request: Filling + Line Thickness option for drawPolygon
New, NormalPublic

Tags
Assigned To
None
Authored By
Adanteh, Apr 8 2017

Description

Hello,
I was glad to see the drawPolygon command added about a year ago, however to my amazement i only realized yesterday that it doesn't do filling and there is no way to do it.
Please add a filling option, that would actually make this command useful for indicating things on the map. Additionally please allow a line width too, the same line width should be possible for drawLine, plus adding borders to drawEllipse and drawRectangle could be done in similar fashion.

https://i.imgur.com/IFfQ8C6.png <- No filling and only 1px line
https://community.bistudio.com/wiki/drawPolygon

sqf
map drawPolygon [_polygon, _color, _fillColor, _lineWidth] would be prefer

[polygon, color]: Array
polygon: Array - array of positions in format [pos1, pos2, pos3,....posN], where pos is Position3D
color: Array - line color in format [r,g,b,a]
fillColor: Array - fill color in format [r, g, b, a]
linewidth: In some magical abstract map size unit (Like the rest of the 'mapSize' stuff!)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • use drawPolygon
  • be frustrated by lack of filling option
Adanteh created this task.Apr 8 2017, 5:04 AM
dedmen added a subscriber: dedmen.Apr 8 2017, 4:39 PM

Seeing you're probably about to work on this ticket, I'd like to make an additional request for OUTSIDE filling. This is very helpful if you want to mark an AO and have everything outside the polygon filled.

A drawTriangle command will be available from Monday on DEV https://community.bistudio.com/wiki/drawTriangle which allows to construct a filled polygon from filled triangles

Add Comment