Bitbybit Docs
    Preparing search index...

    Class FilterFacesPointsDto<T> (Inputs.OCCT)

    用于 shapes.face.filterFacesPoints 的面、点以及要保留的组,它将每个点相对于每个面分类为在内、在边界上或在外。

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshapes: T[]
      • Optionalpoints: Point3[]
      • Optionaltolerance: number
      • OptionaluseBndBox: boolean
      • OptionalgapTolerance: number
      • OptionalkeepIn: boolean
      • OptionalkeepOn: boolean
      • OptionalkeepOut: boolean
      • OptionalkeepUnknown: boolean
      • OptionalflatPointsArray: boolean

      Returns FilterFacesPointsDto<T>

    Properties

    shapes: T[]

    用来测试点的面。

    undefined
    
    points: Point3[]

    要分类的点。

    undefined
    
    tolerance: number

    点距边界多近可算作在边界上,以模型单位表示。

    1.0e-4
    

    0

    Infinity

    0.000001

    useBndBox: boolean

    为 true 时,位于按 gapTolerance 扩大后的面包围盒之外的点算作 在面外,不做精确测试;对于大量远离面的点是一种快速排除。

    false
    
    gapTolerance: number

    useBndBox 开启时,点可以超出包围盒多远仍能得到精确测试, 以模型单位表示。

    0.1
    

    0

    Infinity

    0.01

    keepIn: boolean

    为 true 时,保留面内的点。

    true
    
    keepOn: boolean

    为 true 时,保留面边界上的点。

    true
    
    keepOut: boolean

    为 true 时,保留面外的点。

    false
    
    keepUnknown: boolean

    为 true 时,保留内核无法判定为在某个面内、在面上或在面外的点。

    false
    
    flatPointsArray: boolean

    为 true 时,所有面保留的点合并为一个列表返回;为 false 时,按给定顺序每个面一个列表。

    true