diff --git a/crates/smlib/src/core/sweep.rs b/crates/smlib/src/core/sweep.rs
index 63af1258a..9b49e29e3 100644
--- a/crates/smlib/src/core/sweep.rs
+++ b/crates/smlib/src/core/sweep.rs
@@ -15,12 +15,6 @@
//!
//! What the capi asks of SMLib code that solidcore does not have is [`Error::Unsupported`],
//! refused where the capi would first reach it, so every error before it is the C++ path's:
-//! - a drafted extrusion with a sharp corner under [`DraftCorner::Curvature`] (fork 54148db), or
-//! under [`DraftCorner::Tangent`] with a profile of lines and arcs only (fork e8f23e0): the
-//! fork's `sm_CreateCurvatureKeepingWalls` and its `SmTaperCornerRefusal`;
-//! - a sweep along a path that is neither straight nor (turning with it) arcs about one axis:
-//! SM_API's curve sweep with `bProfileAtPathStart` (fork 2dd71a0) and its placements (fork
-//! 5d3939e);
//! - a planar section of a face (`SmBrep::CreatePlanarSectionCurves`).
//!
//! The screw sweeps are the capi's own: it builds their walls from SMLib's B-spline surfaces,
@@ -41,17 +35,21 @@ use solidcore::geom::tol::USE_DEFAULT;
use solidcore::geom::vector3d::{Point3, Vec3};
use solidcore::heal::stitch::p1::api_stitch_into_solid;
use solidcore::kernel::Kernel;
-use solidcore::math::EFF_ZERO_SQRT;
use solidcore::nurbs::b_spline_curve::{BSplineCurve, BSplineCurveForm, CanonicalData, CurveCanonical, KnotType};
use solidcore::nurbs::b_spline_surface::{BSplineSurface, BSplineSurfaceForm, CanonicalSurfaceData};
use solidcore::nurbs::b_spline_surface_n_lib::p2::OrientType;
+use solidcore::primitive::primitive_creation::SweepOptions;
use solidcore::surface::cone::Cone;
use solidcore::surface::surface::Surface;
-use solidcore::sweep::api_brep::{create_linear_sweep, create_rotational_sweep, create_taper_extrude};
+use solidcore::sweep::api_brep::{
+ CornerRefusal, OffsetCornerType, TaperCornerRefusal, TaperExtrude, create_curve_sweep_with_placements, create_linear_sweep,
+ create_rotational_sweep, create_taper_extrude_with_corner,
+};
use solidcore::sweep::api_surfaces::create_skin_primitive;
use solidcore::topology::brep::p1::{ParallelProjectionOptions, create_parallel_projection_curves};
use solidcore::topology::brep::p2::{ArenaNotifyState, is_manifold_solid};
use solidcore::topology::brep::p3::new_brep;
+use solidcore::topology::brep::p4::stitch_faces;
use solidcore::topology::brep::p5::{StitchAndOrientOptions, stitch_and_orient};
use solidcore::topology::brep::p8::{
FaceBuildEnv, create_face_from_surface, create_faces_with_curves, create_planar_face_with_3d_curves, create_planar_faces_with_3d_curves,
@@ -61,7 +59,7 @@ use solidcore::topology::{Brep, FaceId};
use super::blend::status;
use super::offset::{face_miss, pick_faces};
-use super::{Body, answer, run, with_body};
+use super::{Body, run, with_body};
use crate::sweeps::{Affine, Curve as Profile, DraftCorner, Ends, MAX_CURVES, MAX_STATION_CURVES, MAX_STATIONS, SweepFrame};
use crate::{Error, Result, ffi};
@@ -298,44 +296,6 @@ pub(crate) fn planar_faces(loops: &[Profile]) -> Result
{
})
}
-/// The tangent of `c` at `t`, from the left or the right.
-fn tangent(k: &Kernel, c: &Curve, t: f64, from_left: bool) -> solidcore::Result