Skip to main content

Interface: DensitySurfaceOptions

Defined in: src/mobjects/molecular/DensitySurface.ts:74

Options for a DensitySurface.

Properties​

color?​

optional color: string

Defined in: src/mobjects/molecular/DensitySurface.ts:83

The surface color. Default: '#8e7cc3' (a translucent purple).


grid​

grid: DensityGrid

Defined in: src/mobjects/molecular/DensitySurface.ts:76

The density grid to extract the surface from.


isoValue?​

optional isoValue: number

Defined in: src/mobjects/molecular/DensitySurface.ts:81

The iso level the surface is drawn at. Default: 0.5 * max(values) (half the peak density).


opacity?​

optional opacity: number

Defined in: src/mobjects/molecular/DensitySurface.ts:85

Opacity from 0 to 1. Translucent so the core shows through. Default: 0.5.


resolution?​

optional resolution: number

Defined in: src/mobjects/molecular/DensitySurface.ts:87

Marching-cubes grid cells per axis. Default: 48.