GCTDistanceField class
A signed distance field of a variant's surface (the isosurface of the
mixture at DENSITY_THRESHOLD), on a cube of N^3 voxels over the variant's
bounds, stored as bytes: distance / DISTANCE_SCALE_M, negative inside,
clamped to -128, 127. Optional; a consumer without it sphere-traces
nothing and lights the variant from an atlas instead.
Constructors
-
GCTDistanceField(List<
int> bytes) -
factory
Properties
- CHUNK_CID → String?
-
Content identifier of the field when DATA is absent.
no setter
- chunkCid → String?
-
no setter
-
DATA
→ List<
int> ? -
N^3 signed bytes, x fastest, then y, then z. Absent when the field
travels as the chunk named by CHUNK_CID.
no setter
- DENSITY_THRESHOLD → double
-
Density threshold, in AMPLITUDE_UNITS, that defines the surface.
no setter
- densityThreshold → double
-
no setter
- DISTANCE_SCALE_M → double
-
Metres per byte step of DATA.
no setter
- distanceScaleM → double
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- MEAN_AMPLITUDE → double
-
Mean amplitude over the occupied volume, AMPLITUDE_UNITS.
no setter
- meanAmplitude → double
-
no setter
- N → int
-
Voxels per axis.
no setter
-
ORIGIN_M
→ List<
double> ? -
Origin of voxel (0, 0, 0) in the variant frame, metres (3 values).
no setter
-
originM
→ List<
double> ? -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
SPAN_M
→ List<
double> ? -
Extent of the cube along each axis, metres (3 values).
no setter
-
spanM
→ List<
double> ? -
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
reader
→ const Reader<
GCTDistanceField>