bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class DrawSurfacesColoursDto<T>

    Type Parameters

    • T
    Index

    Constructors

    • Provide options without default values

      Type Parameters

      • T

      Parameters

      • Optionalsurfaces: any[]
      • Optionalcolours: string[]
      • Optionalopacity: number
      • Optionalupdatable: boolean
      • Optionalhidden: boolean
      • OptionalsurfacesMesh: T
      • OptionaldrawTwoSided: boolean
      • OptionalbackFaceColour: string
      • OptionalbackFaceOpacity: number

      Returns DrawSurfacesColoursDto<T>

    Properties

    surfaces: any[]

    Nurbs surfaces

    opacity: number

    Value between 0 and 1

    colours: string | string[]

    Hex colour strings, there has to be a colour for every single surface and lengths of arrays need to match

    updatable: boolean

    Indicates wether the position of these surfaces will change in time

    hidden: boolean

    Indicates if surface should be hidden

    surfacesMesh?: T

    Surfaces mesh variable in case it already exists and needs updating

    drawTwoSided: boolean

    Draw two-sided faces with different colors for front and back. This helps visualize face orientation.

    true
    
    backFaceColour: string

    Hex colour string for back face colour (negative side of the face). Only used when drawTwoSided is true.

    #0000ff
    
    backFaceOpacity: number

    Back face opacity value between 0 and 1. Only used when drawTwoSided is true.

    1
    

    0

    1

    0.1