Skip to content

Initializing a KD-tree from padded 3d data #292

@hgaiser

Description

@hgaiser

First off: thanks for this implementation!

I would like to initialize a KD-tree from (padded) 3D data. In other words, each point consists of 4 f32 values (X, Y, Z, padding). To create a KD-tree on this data I have to create a new vector of [f32; 3] and copy the values into this new vector. This is quite a waste, ideally I would create the KD-tree out of the padded structure directly.

One option I thought off would be for a new_from_iterator method so that I can throw away the padded field on the fly, as kiddo is ingesting the data. I can submit a PR for this, but figured I would open an issue first to discuss the problem. Perhaps I'm overlooking something.

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