Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PointData::convertInternalData(elementTypeSpecifier) #491

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Feb 6, 2024

Allows converting the internal data from one data type to another.

Jeroen Eggermont suggested that it could be useful to convert data to a smaller data type, if possible. Example:

// Converts internal data to std::vector<std::int8_t>
pointData->convertInternalData(PointData::ElementTypeSpecifier::int8);

Which is equivalent to:

pointData->convertInternalData<std::int8_t>();

@N-Dekker N-Dekker force-pushed the feature/PointData-convertInternalData branch from 7b01a48 to be12f0e Compare February 7, 2024 10:15
Allows converting the internal data from one data type to another.

Jeroen Eggermont suggested that it could be useful to convert data to a smaller data type, if possible. Example:

    // Converts internal data to std::vector<std::int8_t>
    pointData->convertInternalData(PointData::ElementTypeSpecifier::int8);

Which is equivalent to:

    pointData->convertInternalData<std::int8_t>();
@N-Dekker N-Dekker force-pushed the feature/PointData-convertInternalData branch from be12f0e to ffc605f Compare February 8, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant