feat(model): complete cylinder workflow

This commit is contained in:
Hakan Seven committed 2026-08-31 22:18:41 +03:00
commit ec13621adb
6 files changed
+1078 -27

No files matched your search

+10
View File
@@ -57,6 +57,16 @@ pub fn cone_frustum_solid(
)
}
/// Circular or elliptical cylinder standing on the local z = base plane.
pub fn elliptical_cylinder_solid(
center: [f64; 3],
major_radius: f64,
minor_radius: f64,
height: f64,
) -> Option<Body> {
brep::make::elliptical_cylinder(center, major_radius, minor_radius, height)
}
/// Solid sphere about `center`.
pub fn sphere_solid(center: [f64; 3], radius: f64) -> Option<Body> {
brep::make::sphere(center, radius)