Bitbybit Docs
    Preparing search index...

    Class DrawManifoldOrCrossSectionOptions (Inputs.Draw)

    Feeds draw.optionsManifoldShapeMaterial: the face color or material of a Manifold solid, the line style of a cross-section, normals and the two-sided rendering.

    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 color string for face color

    #ff0000
    
    faceMaterial?: any

    An engine material for the faces, used instead of faceColour when given

    undefined
    

    true

    crossSectionColour?: string

    Hex color 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 color 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