filling intersecting polygon with color

Hello Mathew,

i found an issue regarding filling of the polygon color:

trying to fill the color for polygon which is intersecting then the polygon is not being filled properly.

the below CZML is used for the same:

[

{

“id”:“document”,

“version”:“1.0”

},

{

“id”:“1430201209700011087981092203000”,

“name”:“Low”,

“polygon”:{

“show”:true,

“material”:{

“solidColor”:{

“color”:{

“rgba”:[

255,0,0,0

]

}

}

},

“positions”:{

“cartographicDegrees”:[

-106.6271213007055,25.31195271848213,0,

-106.2661535050397,25.13253412640252,0,

-105.8858104914057,25.57292221353352,0,

-104.3008104914057,25.60092221353352,0,

-106.6271213007055,25.31195271848213,0

]

}

},

“polyline”:{

“width”:1,

“positions”:{

“cartographicDegrees”:[

-106.6271213007055,25.31195271848213,0,

-106.2661535050397,25.13253412640252,0,

-105.8858104914057,25.57292221353352,0,

-104.3008104914057,25.60092221353352,0,

-106.6271213007055,25.31195271848213,0

]

}

}

}

]

please let us know how to go about it.

the screenshots for the same are posted.

thanks and regards,

chandrika

Hello Mathew,

please look at the attachments of the polygon when it is filled with color and when it is not filled with color.

in the above CZML please place color to the material as 255,0,0,255 , then it works for filling with red color.

thanks and regards

chandrika

I believe polygons should not intersect their own points when filling. Have you tried re-ordering the points so that is not occurring?

I stand corrected, It’s a known bug for complex polygons

https://github.com/AnalyticalGraphicsInc/cesium/issues/1209.