Main Content

activeVoxels

Information about active voxels

Since R2024b

    Description

    voxelStruct = activeVoxels(sdm3D) returns the center locations, sizes, and distance values of all active voxels in the map.

    Examples

    Input Arguments

    collapse all

    3-D signed distance map, specified as a signedDistanceMap3D object.

    Output Arguments

    collapse all

    Active voxel information, returned as a structure. The represents the active voxel information of the map, and contains these fields:

    • ID — ID of the 3-D signed distance map. Default value of 1.

    • Centers — Center position of each active voxel as an N-by-3. Each row represents an xyz position of a voxel, in meters.

    • Distances — Computed distance value of each active voxel as an N-element column vector. Units are in meters.

    • Sizes — Sizes of each active voxel as an N-element column vector. Units are in meters.

    N is the total number of active voxels in the map.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2024b