Page 129 of 183

Re: Curves workbench

Posted: Sat Jul 02, 2022 9:33 am
by Chris_G
@edwilliams16 , is this working in the python console ?

Code: Select all

progressbar = FreeCAD.Base.ProgressIndicator()
@hammax could you be more precise, because this is already possible to snap the points of a Freehand_BSpline to vertexes, edges or faces.

Re: Curves workbench

Posted: Sat Jul 02, 2022 9:41 am
by edwilliams16
Chris_G wrote: Sat Jul 02, 2022 9:33 am @edwilliams16 , is this working in the python console ?

Code: Select all

progressbar = FreeCAD.Base.ProgressIndicator()
@hammax could you be more precise, because this is already possible to snap the points of a Freehand_BSpline to vertexes, edges or faces.
No.

Code: Select all

progressbar = FreeCAD.Base.ProgressIndicator()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instances

Re: Curves workbench

Posted: Sat Jul 02, 2022 11:19 am
by saso

Re: Curves workbench

Posted: Sun Jul 03, 2022 5:44 am
by hammax
"@hammax could you be more precise, because this is already possible to snap the points of a Freehand_BSpline to vertexes, edges or faces."

... to be more precise - I felt sometimes, that there was something like snap - but with no real insight into procedure.
I will try it again with some "cheat sheet" copied from wiki, because the tooltip is too "small".

Re: Curves workbench

Posted: Sun Jul 03, 2022 8:04 am
by Syres
edwilliams16 wrote: Sat Jul 02, 2022 9:41 am

Code: Select all

progressbar = FreeCAD.Base.ProgressIndicator()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instances
Surely that's nothing to do with Curves Wb but something packaging related?

Re: Curves workbench

Posted: Sun Jul 03, 2022 7:34 pm
by edwilliams16
Syres wrote: Sun Jul 03, 2022 8:04 am
edwilliams16 wrote: Sat Jul 02, 2022 9:41 am

Code: Select all

progressbar = FreeCAD.Base.ProgressIndicator()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instances
Surely that's nothing to do with Curves Wb but something packaging related?
It fails with both earlier and the latest Mac Versions.

The only related failure report I found was https://github.com/FreeCAD/FreeCAD_Conda/issues/26. I can't tell if it was resolved.

Code: Select all

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.20.28909 (Git)
Build type: Release
Branch: master
Hash: 6beef68ae1
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * Curves 0.4.4
  * DynamicData 2.46.0
  * fasteners 0.3.44
  * fcgear 1.0.0
  * GDML 1.8.0
  * Help 1.0.2
  * lattice2 1.0.0
  * MeshRemodel 1.8919.0
  * toSketch

Code: Select all

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.21.29393 (Git)
Build type: Release
Branch: master
Hash: 6820e0a9ec85203a6f342ca72a2ff8fd417beaf1
Python 3.10.5, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * Curves 0.4.4
  * DynamicData 2.46.0
  * fasteners 0.3.44
  * fcgear 1.0.0
  * GDML 1.8.0
  * Help 1.0.2
  * lattice2 1.0.0
  * MeshRemodel 1.8919.0
  * toSketch
It does work on the 0.20 Windows-64bit-Stable
EDIT:
Also in an Ubuntu 20.04.3 virtual machine on a Mac OK.

Code: Select all

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * Curves 0.5.0
  * DynamicData 2.46.0
  * lattice2 1.0.0

Re: Curves workbench

Posted: Mon Jul 04, 2022 6:02 am
by hammax
... could it be a problem of the operating system?
microelly's NurbsWB had this "killer" flaw (Linux based).

Freehand BSpline would be an interesting tool, if handling would be easy, understandable and reliable.
E.g. snapping of 2 Freehand_Bsplines makes one of them uneditable/dead.
Trying to produce a Gordon-frame out of 4 or more is not possible.

Is there a possibility to edit the shown vertex coordinates - elsewhere they are useless.

Unexplained / unsolved flaws in the tool:

FreehandBSpline_3.png
FreehandBSpline_3.png (35.44 KiB) Viewed 1691 times

Re: Curves workbench

Posted: Tue Jul 05, 2022 4:52 pm
by hammax
... using FreehandBSpline there must be learned some tricks and a certain workflow.
Besides up to now not all is intus. But finding usage of vertex table is a progress and helps over some irritations.
Next trial will be the "snapping procedure" and it's traps.

FreehandBSpline_5.png
FreehandBSpline_5.png (52.83 KiB) Viewed 1553 times

Re: Curves workbench

Posted: Sun Jul 17, 2022 4:45 pm
by hammax
... snapping needs to learn the usage => after a lot of trials the snap and table usage gets stable results.
(and has sometimes it's own will !!)
Trying it with a kite sail.
- leading and trailing edge
- outer rim profiles
- testing on Gordon
- afterwards inserted inner profiles

Foil_Kite.PNG
Foil_Kite.PNG (30.75 KiB) Viewed 1479 times

Re: Curves workbench

Posted: Wed Jul 20, 2022 3:19 am
by edwilliams16
I'm not having much success with Surface|Flatten face. It works on cylinders and cones as expected - but not on the face of a Part Cube!

In the following file, the visible faces are developable - one is flat, the other is in fact conical, both created by Part Loft to a point, but I get Bad Input if I try to flatten them.
Screen Shot 2022-07-19 at 5.18.11 PM.png
Screen Shot 2022-07-19 at 5.18.11 PM.png (15.37 KiB) Viewed 1401 times