Kml - MultiGeometry with Polygons

103 views
Skip to first unread message

Scott Haynes

unread,
Dec 14, 2015, 1:56:05 PM12/14/15
to cesium-dev
Our application has a drawing tool that allows the user to define a portion of a dome(half sphere).  The user defines a beginning angle, ending angle and a radius ( ex. 1, 180, 800000 see attached pic ).  The object is generated in kml and then loaded into cesium.  In cesium there are triangles left out(see pic).  In GE, it looks like the polygons are defining quads not triangles so that is why the kml renders differently.

Is there away to fix this the issue in the kml?  Do I need to define the missing triangle?  or is there a way to specify a quad as apposed to triangles?  

Is there a better way to do this in CZML?  Or would the czml solution define this object in the same manner?

TIA,
Scott 


triangleError.png
geKml.png
2_1450116435.kml

Hannah Pinkos

unread,
Dec 15, 2015, 11:39:17 AM12/15/15
to cesium-dev
Hello Scott,

This is happening because our polygons don't support being drawn perpendicular to the surface.  I'm surprised the outer shell of the sphere triangulated so well- the polygons must be at just enough of an angle.
I think you could use an extruded LineString for the front face instead.  This would create a WallGeometry behind the scenes, which is designed for drawing perpendicular to the globe.

Best,

Hannah

Matthew Amato

unread,
Dec 15, 2015, 11:40:17 AM12/15/15
to cesiu...@googlegroups.com
Ultimately, we should probably handle this case in Cesium too, so I added an item to the KML roadmap issue.

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hannah Pinkos

unread,
Jul 16, 2018, 4:25:21 PM7/16/18
to cesium-dev
Hi Scott. we finally had a chance to fix this issue and the fix will be included in Cesium 1.48 release on August 1st.

Thanks,

Hannah

On Monday, December 14, 2015 at 1:56:05 PM UTC-5, Scott Haynes wrote:
Reply all
Reply to author
Forward
0 new messages