首页 / 浏览问题 / 移动GIS / 问题详情
AR管线查看中怎么画线,为了进行断面分析
121EXP 2023年11月21日
使用产品:SuperMap iMobile 11i(2023) SP1 for Android(2023/9/21)
数据类型:文件型

想在ar展示管线时候,在屏幕上画一条线,取到这条线两端的坐标,为了做断面分析,如何实现?

1个回答

您好,imobile当前只支持对地形剖面分析,暂时不支持对模型剖面分析
3,430EXP 2023年11月22日
能在ar中画线段吗?然后取到这条线两端的坐标
ar中画线需要用areffectview实现,以下为画线的示例代码:

     AREffectView arEffectView = new AREffectView();

        ARGltfElement gltfElement = new ARGltfElement(this);
        gltfElement.setParentNode(new AREffectElement(this).setParentNode(arEffectView));
        gltfElement.setPosition(new Point3D());
        gltfElement.loadModel(R.raw.ar_environment_material_depth);

        Shape shape = new Shape(BaseShape.MatType.OPAQUE);
        shape.setRadius();
        shape.setParentNode(gltfElement);
        shape.drawLine(new Point3D(),new Point3D());

        Point3D point3D = ConvertTool.convertToArPosition(arEffectView, new Location(lon, lat, gao));
<com.supermap.realspace.SceneControl
    android:id="@+id/sceneControl"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
<com.supermap.ar.areffect.AREffectView
    android:id="@+id/ar_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

AREffectView把sceneControl完全遮挡住了,没办法一起使用,怎么解决?想实现图中的效果,怎么实现

...