Complete CONE creation workflow

This commit is contained in:
ramox81 committed 2026-08-31 11:58:18 +03:00
1 parent 3e45cff72f
commit a2a64dcfb7
3 files changed
+771 -24

No files matched your search

+17
View File
@@ -45,6 +45,23 @@ pub fn cone_solid(center: [f64; 3], radius: f64, height: f64) -> Option<Body> {
brep::make::cone(center, radius, height)
}
/// Circular or elliptical cone/frustum standing on the z = base plane.
pub fn cone_frustum_solid(
center: [f64; 3],
base_x_radius: f64,
base_y_radius: f64,
top_radius: f64,
height: f64,
) -> Option<Body> {
brep::make::frustum(
center,
base_x_radius,
base_y_radius,
top_radius,
height,
)
}
/// Solid sphere about `center`.
pub fn sphere_solid(center: [f64; 3], radius: f64) -> Option<Body> {
brep::make::sphere(center, radius)