Bitbybit Docs
    Preparing search index...

    Class FaceSubdivideToRectangleWiresDto<T> (Inputs.OCCT)

    A face, a grid of cells and optional patterns for shapes.face.subdivideToRectangleWires, which draws one rectangle wire per cell of the face's UV range. The patterns are read cell by cell and repeat when they run out.

    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[]
      • OptionaloffsetFromBorderU: number
      • OptionaloffsetFromBorderV: number

      Returns FaceSubdivideToRectangleWiresDto<T>

    Properties

    shape: T

    The face to draw the rectangles on.

    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 rectangles along U as fractions of their cell, from 0 to 1, applied in turn; 1 fills the cell, and leaving the list out means no scaling.

    undefined
    

    true

    scalePatternV?: number[]

    Sizes of the rectangles along V as fractions of their cell, from 0 to 1, applied in turn; 1 fills the cell, and leaving the list out means no scaling.

    undefined
    

    true

    filletPattern?: number[]

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

    undefined
    

    true

    inclusionPattern?: boolean[]

    Which cells get a rectangle, applied in turn: true draws one, false skips the cell.

    undefined
    

    true

    offsetFromBorderU: number

    A fraction of the U range trimmed at each end before dividing into cells, so the pattern keeps 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 pattern keeps clear of the border; keep it below 0.5.

    0
    

    0

    0.5

    0.01