Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Example: dome

test

// Copyright © 2025-2026 The µcad authors <info@microcad.xyz>
// SPDX-License-Identifier: AGPL-3.0-or-later
// file: dome.µcad

use std::geo2d::*;
use std::ops::*;

pub part Dome(size: Length, strut_width = 1mm) {
    Rect(strut_width)
        .translate(x = size)
        .revolve(180°)
        .rotate(x = -[0..6] * 180° / 6)
        .rotate(z = [0..3] * 180° / 3);
}

Dome(10mm, strut_width = 0.25mm);


2D Output : None

3D Output : None