good point: @realthunder , does your topological naming implementation use OCC's built-in topological naming framework TNaming ?
toponaming solution for sketches
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: toponaming solution for sketches
Re: toponaming solution for sketches
It doesn't.
I don't see why you seem to kind of insist to implement stable names based on libraries that have been investigated years ago and found to be unappropriate for FreeCAD instead of a proven, tested independent implementation under full control of the FreeCAD developers?
Cheers,
Markus
Markus
Re: toponaming solution for sketches
DISCLAIMER:
1) What is following is a personal opinion, but I think that could gave some point to make further discussion.
2) I'm a normal user so probably some of the affirmations are wrong and "behind the scenes" there are other things
3) I don't know in deep FC sources to make "precise affirmations"
But in the past:
1) Replies to this genre of post are very interesting, if the people who answer supply link to sources and explanation why one thing is not "as simple" as it appears
2) if the post has not started some "flame war" it has become very productive as when asking for clarification and obtaining some "authoritative answers" from developers is always a good thing to have.
MY PERSONAL OPINION:
I agree with him about investigating the way OCCT has solved or mitigated the problem, as TNP has no a "solution" as "it depends" heavily on how you make a model, if you refer to face3 that is say the top of a nail and change this to a screw, probably face3 is not "translated" properly with something similar to a circle and probably attaching something to his center is not a clever thing, as there is the "hole" on which the tools has to be inserted.
So no "universal solution" for TNP is possible.
But
1) years ago
2) found to be unappropriate because ...
Probably some things are changed and probably some work on "reinvestigate could be done" as probably the because in point 2 could have been solved.
But also this "apparent solution" has some flaws:
1) how deep in the core of FC is the "workaround implemented" to circumvent the problem
2) why this approach has not been followed by RT, as he is probably the more entitled people to say something about TNP mitigation for FC.
As usual simple is rarely a viable solution when dealing with complex software.
It will be interesting to hear some other developers but as the TNP question has been discussed in deep time ago and the final decision was to rely on RT to bring his solution on FC, probably the most clever way is to make another meeting and see what help the developers could supply to RT to finish the "hard task".
He has recently posted some complains about divergent sources that are difficult to sort out due to the "amount of cosmetics changes" to the sources (so when he is doing a diff is difficult to sort out what relevant part of code is changed).
https://forum.freecadweb.org/viewtopic. ... 02#p611902
Sadly this is not a "one way" process, as he has a slow pace to sync sources of his branch with "stock FC" and some RT version user are complaining about this fact.
https://forum.freecadweb.org/viewtopic. ... 04#p612204
The only solution i could foresee is to "stop developing FC" and concentrate all efforts on "integrating TNP" helping RT to sort out the cosmetics changes, but this is a very difficult solution to implement due to the "creative anarchy" that an OpenSource project usually have in the "developing path".
But probably some steps could be achieved if maybe RT and "core developers" could establish a more strict coordination, if this has not already done as I'm a normal user so I have not idea how developers are working together.
Regards
Carlo D.
EDIT added some link to the discussion.
1) What is following is a personal opinion, but I think that could gave some point to make further discussion.
2) I'm a normal user so probably some of the affirmations are wrong and "behind the scenes" there are other things
3) I don't know in deep FC sources to make "precise affirmations"
But in the past:
1) Replies to this genre of post are very interesting, if the people who answer supply link to sources and explanation why one thing is not "as simple" as it appears
2) if the post has not started some "flame war" it has become very productive as when asking for clarification and obtaining some "authoritative answers" from developers is always a good thing to have.
MY PERSONAL OPINION:
@Zolko has a peculiar way to confront with people, and somewhat it could be seems rude, but he has developed ASM4 so it is not only a "polemic guy", so it deserve some respect for his hard work. (It is not critics about quoted text, is a premise)mfro wrote: ↑Sat Jul 23, 2022 8:33 am I don't see why you seem to kind of insist to implement stable names based on libraries that have been investigated years ago and found to be unappropriate for FreeCAD instead of a proven, tested independent implementation under full control of the FreeCAD developers?
I agree with him about investigating the way OCCT has solved or mitigated the problem, as TNP has no a "solution" as "it depends" heavily on how you make a model, if you refer to face3 that is say the top of a nail and change this to a screw, probably face3 is not "translated" properly with something similar to a circle and probably attaching something to his center is not a clever thing, as there is the "hole" on which the tools has to be inserted.
So no "universal solution" for TNP is possible.
But
this sentece has some flawshave been investigated years ago and found to be unappropriate
1) years ago
2) found to be unappropriate because ...
Probably some things are changed and probably some work on "reinvestigate could be done" as probably the because in point 2 could have been solved.
But also this "apparent solution" has some flaws:
1) how deep in the core of FC is the "workaround implemented" to circumvent the problem
2) why this approach has not been followed by RT, as he is probably the more entitled people to say something about TNP mitigation for FC.
As usual simple is rarely a viable solution when dealing with complex software.
It will be interesting to hear some other developers but as the TNP question has been discussed in deep time ago and the final decision was to rely on RT to bring his solution on FC, probably the most clever way is to make another meeting and see what help the developers could supply to RT to finish the "hard task".
He has recently posted some complains about divergent sources that are difficult to sort out due to the "amount of cosmetics changes" to the sources (so when he is doing a diff is difficult to sort out what relevant part of code is changed).
https://forum.freecadweb.org/viewtopic. ... 02#p611902
Sadly this is not a "one way" process, as he has a slow pace to sync sources of his branch with "stock FC" and some RT version user are complaining about this fact.
https://forum.freecadweb.org/viewtopic. ... 04#p612204
The only solution i could foresee is to "stop developing FC" and concentrate all efforts on "integrating TNP" helping RT to sort out the cosmetics changes, but this is a very difficult solution to implement due to the "creative anarchy" that an OpenSource project usually have in the "developing path".
But probably some steps could be achieved if maybe RT and "core developers" could establish a more strict coordination, if this has not already done as I'm a normal user so I have not idea how developers are working together.
Regards
Carlo D.
EDIT added some link to the discussion.
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/
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: toponaming solution for sketches
The TNaming interface has been investigated by others. And in fact, around the same time I was developing my solution, there is another forum member ezzieyguywuf was giving another look at TNaming. See this thread. To complete the picture, this is the thread about my implementation. If any of you are really curious, be patient, and go through the posts there. For the inpatient ones, here is what ezzieyguywuf's opinion about using TNaming. And just few posts up, you can find wmayer's opinion about reinventing the wheels. Only if you have the chance to browse through OCCT's code, you'll know what is pain. Not that my code is easy to follow and all, but at least I am here as the first author to answer questions.
Re: toponaming solution for sketches
Thanx, interesting read. If I understand correctly, it sort-of worked.realthunder wrote: ↑Mon Jul 25, 2022 12:47 pm The TNaming interface has been investigated by others. And in fact, around the same time I was developing my solution, there is another forum member ezzieyguywuf was giving another look at TNaming
From what I understand, the TNaming framework has many aspects: one of them is to create named shapes (Other aspects are the history representation for a general TNP solution, which seems difficult with the entire OCAF/TNaming code) :
https://dev.opencascade.org/doc/occt-7. ... t_ocaf_5_4
restricting the issue to only sketches, then the explicit naming of shapes could be used, and this could solve the toponaming problem for sketches alone, as described earlier.
Not sure how useful that would be. Not sure how difficult it would be either.