[Sketcher] Make trimmed curve(s) construction based on original

This commit is contained in:
Ajinkya Dahale
2025-03-14 11:12:12 +05:30
committed by Benjamin Nauck
parent 08a66afbc8
commit 23ecf94ab6

View File

@@ -3852,6 +3852,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
// FIXME: we should be able to transfer these to new curves smoothly
// auto geo = getGeometry(GeoId);
const auto* geoAsCurve = getGeometry<Part::GeomCurve>(GeoId);
bool isOriginalCurveConstruction = GeometryFacade::getConstruction(geoAsCurve);
//******************* Step A => Detection of intersection - Common to all Geometries
//****************************************//
@@ -4007,6 +4008,9 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
}
replaceGeometries({GeoId}, newGeos);
for (auto newId : newIds) {
setConstruction(newId, isOriginalCurveConstruction);
}
if (noRecomputes) {
solve();