Is it possible to Trim Edges while preserving constraints ? [solved]
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- FredCailloux
- Posts: 52
- Joined: Wed Jul 14, 2021 7:37 pm
- Location: Canada
Is it possible to Trim Edges while preserving constraints ? [solved]
Just as there is an option in the FreeCAD Sketcher to Constraint-Preserving Sketch Filet,
Is there a way to Constraint-Preserving Trim Edge ?
If not, that would certainly be a great feature suggestion, I think.
Is there a way to Constraint-Preserving Trim Edge ?
If not, that would certainly be a great feature suggestion, I think.
Last edited by FredCailloux on Mon Jan 30, 2023 5:45 pm, edited 1 time in total.
Great results only comes with great understanding. Great memory is just an illusion.
Re: Is it possible to Trim Edges while preserving constraints ?
This proposal is a bit general. Can you specify in more detail what should be done?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- FredCailloux
- Posts: 52
- Joined: Wed Jul 14, 2021 7:37 pm
- Location: Canada
Re: Is it possible to Trim Edges while preserving constraints ?
When you build a sketch, many lines could cross others at different angles and or cross circles. Once fully constrained It is possible to cut some continuous lines at intersections of circles or other lines using the Sketcher tool “Trim edge”. After removing part of that line the sketch is no longer fully constrained.
It may be easy to re-constrain the sketch when it is a simple one, but when the sketch is complicated it often become a non-trivial task.
Often I found myself building a rather complicated sketch up to full constraint and the finishing touch is to slice several lines to arrive at the final desired result. If there was an option that would automatically retain the full constraint of the sketch even after trimming some lines it can make the job much easier.
Of course, there are situations where you do not want that automation. Just like the Constraint-Preserving-Sketch-Filet tool it would be handy to have a similar option where you can cut a line while preserving the fully constrained status.
Is this, at all, possible ?
Great results only comes with great understanding. Great memory is just an illusion.
Re: Is it possible to Trim Edges while preserving constraints ?
FredCailloux wrote: ↑Mon Jan 30, 2023 5:27 pm....but when the sketch is complicated it often become a non-trivial task.
...
The point is usually that with "feature driven" build like in typical Part Design workflow, complicate sketch should not exist at all.
If a sketch is too complicated, probably same thing could be for sure obtained with some more simple sketches, and some features applied.
This is a thing that most skilled users of Part Design WB have told countless time.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- FredCailloux
- Posts: 52
- Joined: Wed Jul 14, 2021 7:37 pm
- Location: Canada
Re: Is it possible to Trim Edges while preserving constraints ?
Point well taken.
I found that through another question where the same suggestion was proposed.
I find I build sketches way too complicated.
Many simple sketches are more productive and easy to debug than trying to put all details onto a single sketch.
thanks
Great results only comes with great understanding. Great memory is just an illusion.
Re: Is it possible to Trim Edges while preserving constraints ?
I didn't mean to elaborate on the reasons why you would need it, that is important too, but for a feature request, it could be helpful if you show on one of the complicated examples you talked about, what an automated tool should do.FredCailloux wrote: ↑Mon Jan 30, 2023 5:27 pm When you build a sketch, many lines could cross others at different angles and or cross circles. Once fully constrained It is possible to cut some continuous lines at intersections of circles or other lines using the Sketcher tool “Trim edge”. After removing part of that line the sketch is no longer fully constrained.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Is it possible to Trim Edges while preserving constraints ? [solved]
I have a relative simple fully contrained sketch only 2 shapes rectamgle and circle.
When trim the unneded segments I lose the fully constrained sketch.
_
When trim the unneded segments I lose the fully constrained sketch.
_
- Attachments
-
- Captura de pantalla 2023-11-17 2300142.png (48.82 KiB) Viewed 927 times
Re: Is it possible to Trim Edges while preserving constraints ? [solved]
It is of course clear, that you as a human being want in this case a tangent constraint. But I’m not sure if this should be done always and it needs quite some geometric knowledge to see this.
The solver does not work algebraically, but by approximation, and I’m not sure if this inverse application (find a certain situation and create a constraint) should be applied here.
The solver does not work algebraically, but by approximation, and I’m not sure if this inverse application (find a certain situation and create a constraint) should be applied here.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Is it possible to Trim Edges while preserving constraints ? [solved]
In these case the constraint already exists before trim operation, therefore the user need the restriction preservation, some option to that toot to toolwidget to preserve or not preserve already existing restrictions.
Re: Is it possible to Trim Edges while preserving constraints ? [solved]
IMHO that would only work if the trimmed part is automatically replaced with the same geometry but construction mode and necessary constraints are applied. Which in most cases will overcomplicate the sketch ?!?