Removed top and bottom wireframe caps from EtcObj Cylinder

This commit is contained in:
korenkonder
2023-11-25 20:54:30 +03:00
parent 366c700bd8
commit f3428676ac
-26
View File
@@ -1650,19 +1650,6 @@ namespace mdl {
size_t wire_offset = indices.size();
// Top cap wireframe
{
int32_t m1 = 0;
int32_t m2 = 1;
indices.reserve(2LL * slices);
for (int32_t j = 0; j < slices; j++) {
indices.push_back(m1);
indices.push_back(j + m2);
}
}
// Stacks wireframe
for (int32_t i = 0; i < stacks; i++) {
int32_t m1 = i * slices + 1;
@@ -1676,19 +1663,6 @@ namespace mdl {
}
}
// Bottom cap wireframe
{
int32_t m1 = stacks * slices + 1;
int32_t m2 = m1 + slices;
indices.reserve(2LL * slices);
for (int32_t j = 0; j < slices; j++) {
indices.push_back(j + m1);
indices.push_back(m2);
}
}
// Slices wireframe
for (int32_t i = 0; i <= stacks; i++) {
int32_t m = i * slices + 1;