Skip to content

[QUESTION] Nanovdb vector statistics using lengthSqr() instead of length() #2145

@RiverIntheSky

Description

@RiverIntheSky

I don't know if it's a bug or not, but the behaviour is different than OpenVDB. In OpenVDB statistics() would return statistics of the magnitudes of the vectors, but in NanoVDB the behaviour on vectors is not documented, and when I check the code it seems to use the squared length, which doesn't quite make sense to me:

: scalar(v.lengthSqr())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions