首页 / 浏览问题 / 三维GIS / 问题详情
超图的webgl版,有绘制简单体的功能吗
24EXP 2017年04月17日
看到exsample里有绘制点线面,有绘制多面体的功能吗

1个回答

哈喽,可以看一下这个范例哈:

http://support.supermap.com.cn:8090/iserver/iClient/for3D/webgl/examples/examples.html#

KML&模型下面的 几何面。

这个面的定义是这个:

var polygon = viewer.entities.add({
polygon : {
hierarchy : {
positions : [new Cesium.Cartesian3(290254.5148736448,5637924.074937166,2971777.4768239637),
new Cesium.Cartesian3(286432.14053509803,5640804.651089405,2966391.9275969476),
new Cesium.Cartesian3(283512.2666752818,5640502.494127799,2969385.3689191523),
new Cesium.Cartesian3(287036.36797237827,5636827.146248645,2974105.8904601005)]
},

您做的时候,如果能用鼠标构造出这些点就可以画了。只不过这些只是临时加到球上的,您要是想保存到数据集,需要通过iserver数据服务哦,不过只能存成二维面。具体是获取上述面坐标的x,y,按照iClent for JavaScript的办法构造出二维面加到数据集。

http://support.supermap.com.cn:8090/iserver/iClient/forJavaScript/examples/examples.html#3857Map

3,389EXP 2017年04月17日
...