HoloField - Boundary-to-Volume Generator
    Preparing search index...

    Function HeightFieldDecoder

    • Generates a height-based scalar field from a boundary field.

      For each position, samples the boundary to obtain its height and returns the difference between the position's z coordinate and that height.

      Positive values indicate positions above the boundary, while negative values indicate positions below it.

      Parameters

      Returns {
          metadata: {
              boundary: {
                  description: string;
                  displayName: string;
                  mathFunction: string;
              };
              decoder: { description: string; displayName: string };
          };
          sample(position: Vector3): number;
      }

    Index
    metadata: DecoderMetadata