MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ResizeVertices

Method ResizeVertices

Source/Graphics/model.cpp:1590–1602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588}
1589
1590void Model::ResizeVertices(int size) {
1591 vertices.resize(size * 3);
1592 normals.resize(size * 3);
1593 tangents.resize(size * 3);
1594 bitangents.resize(size * 3);
1595 tex_coords.resize(size * 2);
1596 if (!bone_weights.empty()) {
1597 bone_weights.resize(size);
1598 }
1599 if (!bone_ids.empty()) {
1600 bone_ids.resize(size);
1601 }
1602}
1603
1604void Model::ResizeFaces(int size) {
1605 bool success = false;

Callers 1

RearrangeVerticesFunction · 0.80

Calls 2

resizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected