Interface: MeshData
Experimental
Data for MeshPrimitive.
Properties
| Property | Type | Description |
|---|---|---|
alpha | ArrayLike<number> | null | Experimental Per-vertex alpha multipliers (e.g. opacityscale), or null. |
castShadow | boolean | Experimental |
clip | | { max: Vec3; min: Vec3; } | null | Experimental Data-space box outside which fragments are discarded (the scene's axis ranges), or null. |
cmax | number | undefined | Experimental |
cmin | number | undefined | Experimental Value at colorscale 0 / 1. Default: the finite range of intensity. |
color | ColorInput | Experimental One sRGB color, or one per vertex (4 floats each). Default Plotly's mesh3d gray. |
colorscale | Colorscale | Experimental sRGB 0–1 stops (shared LUT texture). Default gray ramp. |
depthTest | boolean | Experimental Test against the depth buffer. Default true. False for a layer that lies on a surface already drawn (land on a globe's sphere) and is ordered by renderOrder instead, which avoids the z-fighting of two meshes at one depth. |
depthWrite | boolean | "auto" | Experimental Write depth: 'auto' (default) for opaque meshes only, as a translucent one must not. |
faceColor | Float32Array<ArrayBufferLike> | null | Experimental One sRGB color per triangle (Plotly facecolor), used when color is a single color. |
hooks | MeshShaderHooks | null | Experimental |
indices | MeshIndexArray | null | Experimental Three per triangle; null: every three vertices are a triangle. |
intensity | ArrayLike<number> | null | Experimental Values mapped through the colorscale: one per vertex, or per triangle ('cell'). |
intensityMode | "vertex" | "cell" | Experimental |
interpolation | ColorscaleInterpolation | Experimental |
lighting | Partial<MeshLighting> | null | Experimental Plotly's lighting (defaults: PLOTLY_LIGHTING). |
lightposition | Vec3 | Experimental Plotly's lightposition (clip space). Default (1e5, 1e5, 0). |
material | MeshMaterialSpec | null | Experimental trace.material (E8.7). Default null: Plotly's model. |
normals | Float32Array<ArrayBufferLike> | null | Experimental Per-vertex normals in data space; null: computed with Plotly's epsilons (see mesh-geometry.ts). Flat shading always uses computed face normals. |
normalScale | Vec3 | null | Experimental Axis scale applied before computing normals (Plotly's scene space). Default: extents → 2. |
opacity | number | Experimental Multiplies alpha. Default 1. |
origin | Vec3 | Experimental Float64 origin of positions in data space. Default [0, 0, 0]. |
pick | "vertex" | "triangle" | Experimental Pick ids per vertex (default) or per triangle (expands the geometry). |
positions | Float32Array | Experimental xyz per vertex, relative to origin (RTC, plan E16.4). The primitive copies it. |
receiveShadow | boolean | Experimental Only three.js material types receive shadows. |
reversescale | boolean | Experimental |
shading | "smooth" | "flat" | Experimental 'flat': Plotly's flatshading (face normals). Default 'smooth'. |
side | "double" | "front" | "back" | Experimental Default 'double' (Plotly draws both sides). |
sortTriangles | boolean | "auto" | Experimental Sort a translucent mesh's triangles back to front when the view changes: 'auto' (default) up to MESH_SORT_LIMIT triangles. |