rapidobj icon indicating copy to clipboard operation
rapidobj copied to clipboard

Warnings on indices types

Open ahoarau opened this issue 1 year ago • 0 comments

Hello, Is there any reason why the Indices fields are int and not std::size_t like in the Array class ?

struct Index final {
    int position_index;
    int texcoord_index;
    int normal_index;
};

Wouldn't std::size_t be preferable in that case ?

struct Index final {
    std::size_t position_index{};
    std::size_t texcoord_index{};
    std::size_t normal_index{};
};

ahoarau avatar Mar 03 '24 11:03 ahoarau