com.supermap.realspace.threeddesigner

类 GeometryProcessor



  • public class GeometryProcessor
    extends Object
    建模相关工具类,用于对建筑物边界规范化处理。
    • 构造器详细资料

      • GeometryProcessor

        public GeometryProcessor()
    • 方法详细资料

      • regularizeBuildingFootprint

        public static GeoRegion regularizeBuildingFootprint(GeoRegion geoRegion,
                                                            boolean isLonLat,
                                                            FootprintRegularizationParameter parameter)
        建筑物边界规范化,即将不规则的建筑物矢量面边界变得更加规则,棱角清晰。
        参数:
        geoRegion - 需要规范化处理的面。
        isLonLat - 数据是否是经纬度数据。
        parameter - 规范化处理需要的相关参数。
        返回:
        规范化处理后的矢量面。
      • linePreprocess

        public static GeometryProcessor.PreprocessResult linePreprocess(GeoLine3D line,
                                                                        boolean isLonLat,
                                                                        LinePreprocessParameter parameter)
        线预处理 现有异常夹角去除、自相交检查。
        参数:
        line - 需要处理的线段。
        isLonLat - 数据是否是经纬度数据。
        parameter - 处理的相关参数,可为角度检查参数,线段自相交检查参数。
        返回:
        返回预处理的结果,结果包含处理后的线段和错误数据,当没有错误数据时error为null。

Copyright © 2021–2024 SuperMap. All rights reserved.