Skip to content

CPU Voxelizer reports all voxel positions as (0.0, 0.0, 0.0) #12

@absolutelynothinghere

Description

@absolutelynothinghere

Hello, I'm trying to do CPU voxelization of a mesh and get the positions of the resulting voxels, but they're all reported as (0.0, 0.0, 0.0).
Here is my code:

// voxelize a mesh
List<Voxel_t> voxels;
float unit;
CPUVoxelizer.Voxelize(
    mesh,
    resolution,
    out voxels,
    out unit
);

// print each voxel's position
for (int v = 0; v < voxels.Count; v++) {
    Debug.Log(voxels[v].position.ToString());
}

Thank you very much for this tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions