Bitbybit Docs
    Preparing search index...

    Class FaceSubdivideToRectangleHolesDto<T> (Inputs.OCCT)

    A face, a grid of cells and optional patterns for shapes.face.subdivideToRectangleHoles, which cuts a grid of rectangular holes into the face. Without a scale pattern each hole covers half its cell.

    Type Parameters

    • T
    Index

    Constructors

    • Provide options without default values

      Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • OptionalnrRectanglesU: number
      • OptionalnrRectanglesV: number
      • OptionalscalePatternU: number[]
      • OptionalscalePatternV: number[]
      • OptionalfilletPattern: number[]
      • OptionalinclusionPattern: boolean[]
      • OptionalholesToFaces: boolean
      • OptionaloffsetFromBorderU: number
      • OptionaloffsetFromBorderV: number

      Returns FaceSubdivideToRectangleHolesDto<T>

    Properties

    shape: T

    The face to cut the holes into.

    undefined
    
    nrRectanglesU: number

    How many cells across the U range.

    10
    

    1

    Infinity

    1

    nrRectanglesV: number

    How many cells across the V range.

    10
    

    1

    Infinity

    1

    scalePatternU?: number[]

    Sizes of the holes along U as fractions of their cell, applied in turn; leaving the list out uses 0.5.

    undefined
    

    true

    scalePatternV?: number[]

    Sizes of the holes along V as fractions of their cell, applied in turn; leaving the list out uses 0.5.

    undefined
    

    true

    filletPattern?: number[]

    Corner rounding of the holes as fractions from 0 to 1 of half the shorter side, applied in turn; 0 leaves sharp corners.

    undefined
    

    true

    inclusionPattern?: boolean[]

    Which cells become holes, applied in turn: true cuts one, false leaves the face whole there.

    undefined
    

    true

    holesToFaces: boolean

    When true, the result also carries one face per hole after the perforated face.

    false
    
    offsetFromBorderU: number

    A fraction of the U range trimmed at each end before dividing into cells, so the holes keep clear of the border; keep it below 0.5.

    0
    

    0

    0.5

    0.01

    offsetFromBorderV: number

    A fraction of the V range trimmed at each end before dividing into cells, so the holes keep clear of the border; keep it below 0.5.

    0
    

    0

    0.5

    0.01