I merged it to master !
Another approach to assembly solver (A2plus)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Another approach to assembly solver (A2plus)
KBWBE
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Another approach to assembly solver (A2plus)
works great!
Die Liebe wird siegen, denn sie ist unzerstörbar
Re: Another approach to assembly solver (A2plus)
the result I got in the file is possible just because the cylinder is already in the right position (placement) for the tangent... the constraint is acting only on the seam edge coincidence ... if you rotate the cylinder manually, you will see that it can be freely rotated using its seam edge as axis of rotation. Unfortunately no tangent constraint is created.
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Another approach to assembly solver (A2plus)
But the transparency comes not through subassemblies...
Die Liebe wird siegen, denn sie ist unzerstörbar
- manuelkrause
- Posts: 442
- Joined: Thu Jul 05, 2018 7:16 pm
Re: Another approach to assembly solver (A2plus)
Mmmh, I don't understand... Somehow this doesn't work on here. Already a first imported file with set transparency doesn't apply it and refresh also doesn't bring it up.
(It's a Conda-like openSUSE Tumbleweed FC 0.18, and I applied the respective commit to the devel branch of A2plus and removed pycache before first use.)
Any idea what's going wrong? Or have I misunderstood the way it's supposed to work?
TIA and best regards
Re: Another approach to assembly solver (A2plus)
Do you nave a small test file with sub file to upload that is Darling?manuelkrause wrote: ↑Wed Jan 16, 2019 12:37 pm
Mmmh, I don't understand... Somehow this doesn't work on here. Already a first imported file with set transparency doesn't apply it and refresh also doesn't bring it up.
(It's a Conda-like openSUSE Tumbleweed FC 0.18, and I applied the respective commit to the devel branch of A2plus and removed pycache before first use.)
Any idea what's going wrong? Or have I misunderstood the way it's supposed to work?
TIA and best regards
Re: Another approach to assembly solver (A2plus)
I have added a small PR to A2p repo to better handle transparency...
For sub-assembly transparency I think we will have to be improve A2p using per face transparency as in this thread:
https://forum.freecadweb.org/viewtopic.php?t=16476
Here a sample with sub-assembly per face transparency:
For sub-assembly transparency I think we will have to be improve A2p using per face transparency as in this thread:
https://forum.freecadweb.org/viewtopic.php?t=16476
Here a sample with sub-assembly per face transparency:
- manuelkrause
- Posts: 442
- Joined: Thu Jul 05, 2018 7:16 pm
Re: Another approach to assembly solver (A2plus)
Sorry, I have forgotten to add some files to my earlier post.easyw-fc wrote: ↑Wed Jan 16, 2019 1:34 pmDo you nave a small test file with sub file to upload that is Darling?manuelkrause wrote: ↑Wed Jan 16, 2019 12:37 pm
Mmmh, I don't understand... Somehow this doesn't work on here. Already a first imported file with set transparency doesn't apply it and refresh also doesn't bring it up.
(It's a Conda-like openSUSE Tumbleweed FC 0.18, and I applied the respective commit to the devel branch of A2plus and removed pycache before first use.)
Any idea what's going wrong? Or have I misunderstood the way it's supposed to work?
TIA and best regards
The assembly only consists of the one other file I'd also attach. Transparency in the latter set to 55 in Property editor and resaved. Untouched in the assembly.
- Attachments
-
- KKM-1309.Contour.08.Piston.01.fcstd
- transparent piston part
- (37.1 KiB) Downloaded 65 times
-
- ASM-TEST.KKM-1309.Piston.fcstd
- assembly test
- (4.27 KiB) Downloaded 43 times
- manuelkrause
- Posts: 442
- Joined: Thu Jul 05, 2018 7:16 pm
Re: Another approach to assembly solver (A2plus)
Please also note the files I've attached for you in my post above.easyw-fc wrote: ↑Wed Jan 16, 2019 2:23 pm I have added a small PR to A2p repo to better handle transparency...
For sub-assembly transparency I think we will have to be improve A2p using per face transparency as in this thread:
https://forum.freecadweb.org/viewtopic.php?t=16476
Here a sample with sub-assembly per face transparency:
mycube-transparency.FCStd
assy-transparency1.FCStd
I've retested with these files and your PR link's commit applied. It doesn't change anything on here. Either in my FreeCAD the core .cpp transparency improvement commit hasn't landed as expected, it isn't sufficient or something else is going on.
Regarding your attached cube files... I attach two screenshots. First one is showing directly after opening the assy and second one is after refreshing imported files. Unfortunately both versions again show the annoying artefacts, coming along with unselectable faces (look at the cylinder's section and faces and try to select).
Are you able to reproduce what I describe?
BTW, the above linked forum thread was my inspiration to work on my improve-colors coding trials. But the unselectable faces issue made me take a break. In my humble understanding there is a collision of the presence of {DiffuseColor with/without included alpha value} and {ShapeColor with Transparency value property} and I haven't won any clear evidence about what gets precedence over the other or in which order. Maybe you're able to find out more.
BR, Manuel
- manuelkrause
- Posts: 442
- Joined: Thu Jul 05, 2018 7:16 pm
Re: Another approach to assembly solver (A2plus)
In addition to my posts above... and referring to your most recent changes to this code:easyw-fc wrote: ↑Tue Jan 15, 2019 8:05 pm Here a small macro that could refresh Transparency if applied i.e. when refreshing the AssemblyEdit: I have added a small PRCode: Select all
doc = FreeCAD.ActiveDocument if doc is not None: for obj in doc.Objects: if hasattr (obj, 'ViewObject'): if hasattr (obj.ViewObject, 'Transparency'): if obj.ViewObject.Transparency < 100: transparency = obj.ViewObject.Transparency obj.ViewObject.Transparency = transparency + 1 obj.ViewObject.Transparency = transparency
I'm convinced that such trick needs to occur on every color operation within A2plus.
IIRC something like that was used in assembly2 and also is in current Arch WB, that needs somekind of this (windows are transparent).