Bitbybit Docs
    Bereite Suchindex vor...

    Klasse DrawSolidMeshesDto<T> (Inputs.JSCAD)

    The options draw.drawAnyAsync passes on when the entity is a list of JSCAD solids or 2D shapes: colors, opacity, visibility, the two-sided rendering and the parent mesh to reuse when redrawing.

    Typenparameter

    • T
    Index

    Konstruktoren

    • Provide options without default values

      Typenparameter

      • T

      Parameter

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

      Rückgabewert DrawSolidMeshesDto<T>

    Eigenschaften

    meshes?: JSCADEntity[]

    The solids or flat 2D shapes to draw, each becoming a child of one parent mesh

    undefined
    

    true

    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 with one entry per entity colors each in turn, any other list uses its first entry. Colorized entities keep their own color

    #444444
    
    updatable: boolean

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

    false
    
    hidden: boolean

    When true, the meshes are created but not shown until they are 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