Bitbybit Docs
    Bereite Suchindex vor...

    Klasse DrawSolidMeshDto<T> (Inputs.JSCAD)

    The options draw.drawAnyAsync passes on when the entity is one JSCAD solid or 2D shape: color, opacity, visibility, the two-sided rendering and the mesh to reuse when redrawing.

    Typenparameter

    • T
    Index

    Konstruktoren

    • Provide options without default values

      Typenparameter

      • T

      Parameter

      • Optionalmesh: JSCADEntity
      • Optionalopacity: number
      • Optionalcolours: string | string[]
      • Optionalupdatable: boolean
      • Optionalhidden: boolean
      • OptionaljscadMesh: T
      • OptionaldrawTwoSided: boolean
      • OptionalbackFaceColour: string
      • OptionalbackFaceOpacity: number

      Rückgabewert DrawSolidMeshDto<T>

    Eigenschaften

    The solid or flat 2D shape to draw; it is converted to mesh data on the way

    opacity: number

    How opaque the faces are, from 0 for invisible to 1 for solid

    1
    

    0

    1

    0.1

    colours: string | string[]

    Hex color of the faces; a list uses its first entry. An entity colored with colors.colorize keeps its own color instead

    #444444
    
    updatable: boolean

    When true, the drawn mesh can be refreshed in place on later draws by passing it back as jscadMesh

    false
    
    hidden: boolean

    When true, the mesh is created but not shown until it is made visible

    false
    
    drawTwoSided: boolean

    When true, the back of every face is drawn as well, in backFaceColour, which helps to see face orientation

    true
    
    backFaceColour: string

    Hex color of the back faces, the side the face normal points away from; used only when drawTwoSided is true

    #0000ff
    
    backFaceOpacity: number

    How opaque the back faces are, from 0 to 1; used only when drawTwoSided is true

    1
    

    0

    1

    0.1