Skip to content

Commit

Permalink
Update pyramid example
Browse files Browse the repository at this point in the history
  • Loading branch information
dxrcy committed Dec 3, 2024
1 parent ce1c51d commit 06ff1ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/pyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ int main() {
int min_height = *std::min_element(heights.begin(), heights.end());

// Build rings, diminishing up to pyramid height
mcpp::Coordinate base_pt = heights.base_pt();
base_pt.y = min_height;
mcpp::Coordinate base_pt = {heights.base_pt(), min_height};
int side_len = pyramid_base_len;
for (int i = 0; i < PYRAMID_HEIGHT; i++) {
make_ring(base_pt + mcpp::Coordinate(i, i, i), side_len - (i * 2));
Expand Down

0 comments on commit 06ff1ff

Please sign in to comment.