DressUp features (Fillet etc.) references

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
tsadowski
Posts: 36
Joined: Tue Jan 20, 2015 10:50 pm

DressUp features (Fillet etc.) references

Post by tsadowski »

Hi,

I had some trouble with fillets on a complex part. A small change of the base part would wreak havoc with the edge assignments. The edge references appear to depend on topological naming. I did not yet go to the bottom of this. Topological names are very difficult to keep constant.

I am quite certain that commercial packages support topological names with geometry information. SolidWorks for instance displays missing edges. The information does not have to be persistent, it can be recreated during document loading.

Would it be useful and feasible to add geometry information to PropertyLinkSub? Would the right place be somewhere else? The topological naming together with the geometry information could return references with different levels of confidence:
- Topological name and geometry match
- Geometry matches exactly
- Geometry matches mostly (e.g. colinear straight edge with different length)
- Geometry can't be found.

If you think this is a useful approach, I would try to put some effort into it. All ideas for the best place where to implement this are appreciated.

Cheers,
Torsten
Bildschirmfoto von 2020-02-18 23-15-20.png
Bildschirmfoto von 2020-02-18 23-15-20.png (864.2 KiB) Viewed 1800 times
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: DressUp features (Fillet etc.) references

Post by vocx »

tsadowski wrote: Tue Feb 18, 2020 10:18 pm ...Topological names are very difficult to keep constant.
...
Topological naming problem

Topological Naming, My Take
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
tsadowski
Posts: 36
Joined: Tue Jan 20, 2015 10:50 pm

Re: DressUp features (Fillet etc.) references

Post by tsadowski »

Yes, that is it. I also found an approach using TNaming from the OCC application framework:
https://github.com/ezzieyguywuf/freecadTopoTesting

I will give it a try.

Cheers,
Torsten
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: DressUp features (Fillet etc.) references

Post by vocx »

tsadowski wrote: Wed Feb 19, 2020 10:16 pm Yes, that is it. I also found an approach using TNaming from the OCC application framework:...
Topo Naming Solution in OCC 7.4.0 very important
Chris_G wrote: Sun Jan 05, 2020 1:13 pm Here is a topic about OCC's OCAF framework :
FreeCAD OCAF and reinventing the wheel
wmayer wrote:From the beginning on FreeCAD was not designed as a pure CAD system but as a flexible system providing frameworks for different purposes. If it was a pure CAD system then the OCAF framework might have been sufficient but since it's not and we already know that we hit a dead end with OCAF why should we do the same mistake twice?
wmayer wrote:Reinventing something is not per se a bad thing. At the beginning of a project you can evolve very fast if you use an existing framework but the problems will appear in long-term. If a framework is not designed flexible enough (and I have my doubts with OCAF) then at some point you hit a dead end and either you live with its limitations or you put huge effort into implementing something new -- this effort is a multiple times higher than the effort you had if you implemented your own solution from the beginning on.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
tsadowski
Posts: 36
Joined: Tue Jan 20, 2015 10:50 pm

Re: DressUp features (Fillet etc.) references

Post by tsadowski »

vocx wrote: Thu Jan 16, 2020 7:43 pm I just wanted to re-iterate this by Werner.

Coin3D - FreeCAD Delegation to help move Coin3D forward
wmayer wrote: Tue Mar 26, 2019 2:43 pm
NormandC wrote: Sat Mar 09, 2019 11:04 pm I find odd that in all those topics about the scene graph issue, the possibility of going with OCCT visualization is never considered. ...
In the early days of FreeCAD we were using the OCCT viewer and even its document framework OCAF. But at that time the viewer was extremely slow for larger objects and lacked of many features that we got with Coin3d for free. The only big advantage of the OCCT viewer over Coin3d was the available highlighting/selection mechanism but by writing our own nodes we could achieve something similar.

And the whole OCAF was a pain in the ass. We got it working for built-in object types but for all custom object types you had to register them with a very weird plugin mechanism which we never got working reliably. And documentation was either non-existent or very poor.

After spending 2-3 years on this we gave up and started to implement something that we have control over and that we understand.
I am not sure if OCAF is not flexible enough but I agree the plugin system is really weird. And to extend the OCAF to new object types it was (still is?) necessary to use the equally weird OCC build system.

I will have a go at realthunders solution and see how far topological naming solves the problem. I still think that geometry information would be useful to aid the user in resolving conflicts.

Cheers,
Torsten
tsadowski
Posts: 36
Joined: Tue Jan 20, 2015 10:50 pm

Re: DressUp features (Fillet etc.) references

Post by tsadowski »

Hi,

I did make some tests with the stock FreeCAD and with the topological naming development:
Topological Naming, My Take

I simply made a brick with a fillet on 2 corners:
Bildschirmfoto vom 2020-03-09 21-29-39.png
Bildschirmfoto vom 2020-03-09 21-29-39.png (45.42 KiB) Viewed 1626 times
The first test was to insert an additional fillet. This fails with the stock FreeCAD but worked with the topological naming development:
Bildschirmfoto vom 2020-03-09 21-35-38.png
Bildschirmfoto vom 2020-03-09 21-35-38.png (51.05 KiB) Viewed 1626 times
Topological naming starts as soon as the solid is created. If the sketch is altered, the topological naming fails. The picture shows one wrongly identified edge from the failed fillet:
Bildschirmfoto vom 2020-03-09 21-41-01.png
Bildschirmfoto vom 2020-03-09 21-41-01.png (61.21 KiB) Viewed 1626 times
Topological naming is a big step forward but I think there are some advantages for additional geometry information. If the edge/face etc. does not exist anymore or if the topological naming changes, it is still possible to give the user a hint, where the selected edge/face had been.

Cheers,
Torsten
galou_breizh
Posts: 437
Joined: Wed Sep 15, 2010 9:38 am

Re: DressUp features (Fillet etc.) references

Post by galou_breizh »

I also already proposed something stronger that hints: filters for face, edge, etc. selection: https://forum.freecadweb.org/viewtopic. ... 81#p199781.

Hints could be also used in addition to filters. This could be used in the future for example with some filters based on artificial intelligence or based on some kind of heuristics.

The issue is not the lack of good ideas but the lack of workforce to implement them on their free time.

Gaël
tsadowski
Posts: 36
Joined: Tue Jan 20, 2015 10:50 pm

Re: DressUp features (Fillet etc.) references

Post by tsadowski »

Geometry search turned up in Realthunders FreeCAD. Now editing the base sketch works as well. I am really impressed.

Cheers,
Torsten
Post Reply