Bitbybit Docs
    Preparing search index...

    Class RemoveConsecutiveDuplicatesDto (Inputs.Point)

    point.removeConsecutiveDuplicates 过滤的点,以及两个点需要多接近才算相同。

    Index

    Constructors

    Properties

    points: Point3[]

    要过滤的点;保持其顺序。

    undefined
    
    tolerance?: number

    当每个坐标的差都小于此值时,两个点算作相同。

    1e-7
    

    0

    Infinity

    1e-7

    checkFirstAndLast: boolean

    为 true 时,与第一个重复的最后一个点也会被舍弃,这样可以干净地闭合一圈。