mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-04 04:37:55 +03:00
Removed top and bottom wireframe caps from EtcObj Cylinder
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user