Bitbybit Docs
    Preparing search index...

    Class DrawOcctShapeSimpleOptions (Inputs.Draw)

    Feeds draw.optionsOcctShapeSimple: the most used OCCT drawing options, precision, face and edge colors and the two-sided rendering. Every option it leaves out takes the default draw.optionsOcctShape gives.

    Index

    Constructors

    • Parameters

      • Optionalprecision: number
      • OptionaldrawFaces: boolean
      • OptionalfaceColour: string
      • OptionaldrawEdges: boolean
      • OptionaledgeColour: string
      • OptionaledgeWidth: number
      • OptionaldrawTwoSided: boolean
      • OptionalbackFaceColour: string
      • OptionalbackFaceOpacity: number

      Returns DrawOcctShapeSimpleOptions

    Properties

    precision?: number

    The largest distance, in model units, the triangles and edge lines may stray from the curved shape; smaller is finer and heavier.

    0.01
    

    0

    Infinity

    drawFaces?: boolean

    When false, the faces and their backs are not drawn.

    true
    
    faceColour?: string

    The color of the faces, as a hex string.

    #ff0000
    
    drawEdges?: boolean

    When false, the edges are not drawn.

    true
    
    edgeColour?: string

    The color of the edges, as a hex string.

    #ffffff
    
    edgeWidth?: number

    The width of the edge and iso curve lines, a hundredth of it in model units.

    2
    

    0

    Infinity

    drawTwoSided?: boolean

    When true, the back of each face is drawn in backFaceColour, which shows which way faces point.

    true
    
    backFaceColour?: string

    The color of the back of the faces, as a hex string; used with drawTwoSided.

    #0000ff
    
    backFaceOpacity?: number

    How opaque the back of the faces is, from 0 for invisible to 1 for opaque; used with drawTwoSided.

    1
    

    0

    1

    0.1