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

    Interface VoxelSampler

    Defines how positions on a surface are represented and provides the coordinates used by a field.

    The primary use case is spherical surfaces, where the sampler provides normalized direction vectors with components in the range [-1, 1]. However, alternative samplers may represent other surface types, such as planar surfaces, provided the field implementation supports the supplied coordinate space.

    interface VoxelSampler {
        defaults: SpatialSamplerOptions;
        metadata: {
            description: string;
            displayName: string;
            mathFunction?: string;
            samplerType: "boundary" | "pointCloud" | "voxel";
        };
        generate(decoder: BoundDecoder, options: SpatialSamplerOptions): VoxelGrid;
    }

    Hierarchy (View Summary)

    Index
    metadata: {
        description: string;
        displayName: string;
        mathFunction?: string;
        samplerType: "boundary" | "pointCloud" | "voxel";
    }