Bitbybit Docs
    Preparing search index...

    Class DrawOcctShapeMaterialOptions (Inputs.Draw)

    Feeds draw.optionsOcctShapeMaterial: an OCCT shape whose faces wear an engine material, with the precision and the edge style. Every option it leaves out takes the default draw.optionsOcctShape gives, so the backs of the faces show in blue.

    Index

    Constructors

    • Parameters

      • Optionalprecision: number
      • OptionalfaceMaterial: any
      • OptionaldrawEdges: boolean
      • OptionaledgeColour: string
      • OptionaledgeWidth: number

      Returns DrawOcctShapeMaterialOptions

    Properties

    precision?: number

    The largest distance, in model units, the triangles and edge lines may stray from the curved shape; smaller is finer and heavier.

    0.01
    

    0

    Infinity

    faceMaterial: any

    The engine material the faces are drawn with, such as draw.createPBRMaterial makes; it sets their color and opacity.

    undefined
    
    drawEdges?: boolean

    When false, the edges are not drawn.

    true
    
    edgeColour?: string

    The color of the edges, as a hex string.

    #ffffff
    
    edgeWidth?: number

    The width of the edge and iso curve lines, a hundredth of it in model units.

    2
    

    0

    Infinity