WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Class BulgePoint

    凸度点类 表示多段线中的凸度点,包含坐标和凸度值

    Index

    Constructors

    Properties

    Methods

    Constructors

    • 构造函数 支持简化的数组写法 [x, y]

      Parameters

      • pointCoordinate: PointInput = ...

        点坐标,支持 Point2D 或数组 [x, y],默认为原点

      • bulgeValue: number = 0

        凸度值,默认为0

      Returns BulgePoint

      // 简化写法
      const bp1 = new BulgePoint([100, 100], 0.5);

      // Point2D 写法
      const bp2 = new BulgePoint(new Point2D(100, 100), 0.5);

    Properties

    point2d: Point2D
    bulge: number

    Methods

    • 克隆凸度点

      Returns BulgePoint

      克隆的凸度点对象

    • 转换为数据库格式 输出为紧凑格式:{dbPoint2d: [x,y] 或 [x,y,z], bulge: number}

      Returns { dbPoint2d: [number, number] | [number, number, number]; bulge: number }

      数据库凸度点对象

    • 从数据库格式加载 支持dbPoint2d为数组[x,y]或[x,y,z]格式

      Parameters

      • dbData: any

        数据库凸度点对象

      Returns this

      当前对象实例