@equinor/videx-3d
    Preparing search index...

    Function Surface

    • This component renderes a TIN model from an elevation map, according to the SurfaceMeta and SurfaveValues data types.

      It has several customization options for rendering the surfaces, including color ramps, contour lines and transparency.

      Surface values are expected to be in a regular grid. An optimized triangulation is used for the geometry, but color ramp values and contour lines are always using the full resolution of the data for accuracy.

      Parameters

      • __namedParameters: SurfaceProps

        Surface props

        • Optionalcolor?: string
        • OptionalcolorRamp?: number
        • OptionalcontoursColor?: string
        • OptionalcontoursColorMode?: ContourColorMode
        • OptionalcontoursColorModeFactor?: number
        • OptionalcontoursInterval?: number
        • OptionalcontoursThickness?: number
        • Optionaldebug?: boolean
        • OptionaldoubleSide?: boolean
        • OptionalmaxError?: number
        • meta: SurfaceMeta
        • OptionalnormalMap?: Texture
        • OptionalnormalScale?: Vec2
        • Optionalopacity?: number
        • OptionalprecomputeNormals?: boolean

          Precompute the surface normals into a compact texture instead of deriving them per-fragment from the elevation map. This skips the normal recompute the shader otherwise repeats across the order-independent transparency passes, at the cost of a little extra texture memory. Defaults to false.

        • Optionalpriority?: number
        • OptionalrampMax?: number
        • OptionalrampMin?: number
        • OptionalreverseRamp?: boolean
        • OptionalshowContours?: boolean
        • OptionaluseColorRamp?: boolean
        • Optionalwireframe?: boolean

      Returns Element | null

      <Surface meta={meta} />