From 01d0d6bb933a74c8cdf8578ca49c6ad401b4be98 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Fri, 30 Oct 2026 06:16:13 -0400 Subject: [PATCH] SMLib bindings: a curve list holds up to 16384 curves, as the C API now takes tangency-labs/smlib#63 raised SMLIB_CURVE_MAX_CURVES from 4096 to 16384; CURVE_MAX_CURVES follows it, so a profile of 5000 segments (a modelled thread, a fine polygon) extrudes: kernel tests::measure_of_a_body_with_many_faces passes (5002 faces, 15000 edges, 10000 vertices). Co-Authored-By: Claude Opus 5.5 --- crates/smlib/src/ffi/sweeps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/smlib/src/ffi/sweeps.rs b/crates/smlib/src/ffi/sweeps.rs index 0a21a893e..9da3b75f6 100644 --- a/crates/smlib/src/ffi/sweeps.rs +++ b/crates/smlib/src/ffi/sweeps.rs @@ -16,7 +16,7 @@ use super::{ERR_ARG, RawBrep, new_brep}; pub const CURVE_LINE: i64 = 1; pub const CURVE_ARC: i64 = 2; pub const CURVE_NURBS: i64 = 3; -pub const CURVE_MAX_CURVES: usize = 4096; +pub const CURVE_MAX_CURVES: usize = 16_384; pub const CURVE_MAX_DEGREE: usize = 25; pub const CURVE_MAX_POINTS: usize = 100_000;