Interface: SurfaceMesh
Defined in: packages/sdvplot/src/three/surface.ts:22
A sporty playing surface as one triangle mesh in the z = 0 plane, in the surface's own units and frame (feet for a
baseball field or a rink, metres for a pitch; origin where sporty puts it), ready for a three.js BufferGeometry.
Properties
bbox
bbox: readonly [
number,number,number,number]
Defined in: packages/sdvplot/src/three/surface.ts:33
The surface's extent, [x0, y0, x1, y1].
colors
colors:
Float32Array
Defined in: packages/sdvplot/src/three/surface.ts:26
r, g, b, a per vertex, 0 to 1, in linear sRGB (three.js's working colour space): a vertex-colour attribute.
indices
indices:
Uint32Array
Defined in: packages/sdvplot/src/three/surface.ts:28
Three vertex indices per triangle, counter-clockwise seen from +z, back to front.
loops
loops:
SurfaceLoop[]
Defined in: packages/sdvplot/src/three/surface.ts:30
Every loop, in drawing order (later ones lie over earlier ones in the same plane).
positions
positions:
Float32Array
Defined in: packages/sdvplot/src/three/surface.ts:24
x, y, z per vertex; z is 0.
units
units:
Units
Defined in: packages/sdvplot/src/three/surface.ts:31