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

    Class DrawManifoldOrCrossSectionOptions

    Index

    Constructors

    • Provide options without default values

      Parameters

      • OptionalfaceOpacity: number
      • OptionalfaceMaterial: any
      • OptionalfaceColour: string
      • OptionalcrossSectionColour: string
      • OptionalcrossSectionWidth: number
      • OptionalcrossSectionOpacity: number
      • OptionalcomputeNormals: boolean
      • OptionaldrawTwoSided: boolean
      • OptionalbackFaceColour: string
      • OptionalbackFaceOpacity: number

      Returns DrawManifoldOrCrossSectionOptions

    Properties

    faceOpacity: number

    Face opacity value between 0 and 1

    1
    

    0

    1

    0.1

    faceColour: string

    Hex colour string for face colour

    #ff0000
    
    faceMaterial?: any

    Face material

    undefined
    

    true

    crossSectionColour: string

    Hex colour string for cross section drawing

    #ff00ff
    
    crossSectionWidth: number

    Width of cross section lines

    2
    
    crossSectionOpacity: number

    Cross section opacity value between 0 and 1

    1
    

    0

    1

    0.1

    computeNormals: boolean

    Compute normals for the shape

    false
    
    drawTwoSided: boolean

    Whether to draw two-sided geometry with back face rendering

    true
    
    backFaceColour: string

    Hex colour string for the back face when drawing two-sided geometry

    #0000ff
    
    backFaceOpacity: number

    Opacity of the back face when drawing two-sided geometry

    1
    

    0

    1

    0.1