Skip to main content

Interface: ImplicitSurfaceOptions

Defined in: src/mobjects/three-d/ImplicitSurface.ts:10

Options for creating an ImplicitSurface.

Properties​

center?​

optional center: Vector3Tuple

Defined in: src/mobjects/three-d/ImplicitSurface.ts:32

Center position [x, y, z]. Default: [0, 0, 0]


color?​

optional color: string

Defined in: src/mobjects/three-d/ImplicitSurface.ts:24

Color as CSS color string. Default: '#58c4dd' (Manim blue)


doubleSided?​

optional doubleSided: boolean

Defined in: src/mobjects/three-d/ImplicitSurface.ts:30

Render both sides. Default: true


func​

func: ScalarField3D

Defined in: src/mobjects/three-d/ImplicitSurface.ts:12

The scalar field f(x, y, z). The surface is the level set f = isoLevel.


isoLevel?​

optional isoLevel: number

Defined in: src/mobjects/three-d/ImplicitSurface.ts:22

The iso level of the extracted surface. Default: 0


opacity?​

optional opacity: number

Defined in: src/mobjects/three-d/ImplicitSurface.ts:26

Opacity from 0 to 1. Default: 1


resolution?​

optional resolution: number

Defined in: src/mobjects/three-d/ImplicitSurface.ts:20

Grid cells per axis for the marching-cubes sampling. Default: 24


vertexColors?​

optional vertexColors: Float32Array

Defined in: src/mobjects/three-d/ImplicitSurface.ts:39

Optional per-vertex RGB colors (0..1), flat [r, g, b, …] parallel to the surface vertices (one triple per vertex, so three values per position). When set and its length equals the position array length, the mesh uses vertex colors instead of the single color. A mismatched length is ignored.


wireframe?​

optional wireframe: boolean

Defined in: src/mobjects/three-d/ImplicitSurface.ts:28

Render as wireframe. Default: false


xRange?​

optional xRange: [number, number]

Defined in: src/mobjects/three-d/ImplicitSurface.ts:14

X range [min, max]. Default: [-2, 2]


yRange?​

optional yRange: [number, number]

Defined in: src/mobjects/three-d/ImplicitSurface.ts:16

Y range [min, max]. Default: [-2, 2]


zRange?​

optional zRange: [number, number]

Defined in: src/mobjects/three-d/ImplicitSurface.ts:18

Z range [min, max]. Default: [-2, 2]