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

    Class DrawManifoldOrCrossSectionDto<T, M>

    Type Parameters

    • T
    • M
    Index

    Constructors

    • Provide options without default values

      Type Parameters

      • T
      • M

      Parameters

      • OptionalmanifoldOrCrossSection: T
      • OptionalfaceOpacity: number
      • OptionalfaceMaterial: M
      • OptionalfaceColour: string
      • OptionalcrossSectionColour: string
      • OptionalcrossSectionWidth: number
      • OptionalcrossSectionOpacity: number
      • OptionalcomputeNormals: boolean
      • OptionaldrawTwoSided: boolean
      • OptionalbackFaceColour: string
      • OptionalbackFaceOpacity: number

      Returns DrawManifoldOrCrossSectionDto<T, M>

    Properties

    manifoldOrCrossSection?: T

    Manifold geometry

    undefined
    
    faceOpacity: number

    Face opacity value between 0 and 1

    1
    

    0

    1

    0.1

    faceMaterial?: M

    Face material

    undefined
    

    true

    faceColour: string

    Hex colour string for face colour

    #ff0000
    
    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

    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