feat(spline): improve fit and CV editing
Keep planar conversions kernel-backed and leave unsupported 3D, CV-to-fit, and closed rebuilds unavailable instead of changing curve data.\n\nRefs #815
This commit is contained in:
commit
1c408e3a73
16 changed files with 924 additions and 350 deletions
|
|
@ -121,6 +121,13 @@ impl OpenCADStudio {
|
|||
acadrust::EntityType::LwPolyline(polyline) => Some(polyline.vertices.len()),
|
||||
acadrust::EntityType::Polyline2D(polyline) => Some(polyline.vertices.len()),
|
||||
acadrust::EntityType::Leader(leader) => Some(leader.vertices.len()),
|
||||
acadrust::EntityType::Spline(spline) => Some(
|
||||
if crate::entities::spline::uses_fit_method(spline) {
|
||||
spline.fit_points.len()
|
||||
} else {
|
||||
spline.control_points.len()
|
||||
},
|
||||
),
|
||||
_ => None,
|
||||
});
|
||||
vertex_count.map_or(prop_vertex, |count| prop_vertex.min(count.saturating_sub(1)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue