forked from 1b-agent/opencadstudio-upstream
feat(model): complete cylinder workflow
This commit is contained in:
commit
ec13621adb
6 files changed
+1078
-27
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user