Sketcher: SketchObject - Trim refactor
====================================== * Refactor the code for all GeomTrimmedCurve and non-periodic BSplines in a single block, adding support for arcs of hyperbola, parabola and B-Splines. * Refactor the code for periodic curves (circle, ellipse) in a single block, adding support for periodic B-Splines. * Add support for trimming limited by external geometry * Trim deletes a geometry if intersections are detected and nothing would be left after trimming * Trim deletes a geometry if no intersection are detected Bonus: * Function addConstraint moving the constraint instead of cloning it again * SketchObject::seekTrimPoints as a wrapper of Part2DObject::seekTrimPoints providing a correct handling of GeoId indices. * Helper functions addConstraint/createconstraint to create new constraints and move them into the Constraint property * New getGeometry with templated return type defaulting to Part::Geometry.
This commit is contained in:
committed by
abdullahtahiriyo
parent
5ea99f4786
commit
30ce0310b8