Curves workbench

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves workbench

Post by Vincent B »

This face have 5 vertexes. That's make errors with many features (offset3D...).
Could you make a tool for delete the extra vertex? :roll:
Attachments
Faces_5_vertexes.FCStd
(26.22 KiB) Downloaded 45 times
User avatar
seppelw
Posts: 115
Joined: Tue Jan 16, 2018 11:12 pm
Location: CH/DE

Re: Curves workbench

Post by seppelw »

Hello,

on the latest Win Version the WB does nor show up, is this a known issue? Or are there issies with the Addon-Manager?

Thanks a lot, best Regards, Seppel

--------------------------------------------------
Log when I open and close the addon:

16:24:40 An error occurred updating macros from GitHub:
Cmd('C:\Users\seppel\AppData\Local\Programs\Git\cmd\git.exe') failed due to: exit code(128)
cmdline: C:\Users\seppel\AppData\Local\Programs\Git\cmd\git.exe pull --ff-only
stderr: 'fatal: not a git repository (or any of the parent directories): .git'
16:25:13 Addon Manager: Unexpected 403 response from server
16:25:13 Traceback (most recent call last):
16:25:13 File "C:\sw_inst\FC\FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64\Mod\AddonManager\addonmanager_workers.py", line 881, in run
16:25:13 self.macro.fill_details_from_wiki(url)
16:25:13 File "C:\sw_inst\FC\FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64\Mod\AddonManager\addonmanager_macro.py", line 254, in fill_details_from_wiki
16:25:13 translate(
16:25:13 KeyError: 'rawcodeurl'
16:25:18 Addon Manager: Unexpected 404 response from server
16:25:20 Syntax error while reading __files__ from macro AeroFoil
16:25:20 __Files__ = "AeroFoil_UI_Files/AeroFoil_Initial_Dialog.ui, AeroFoil_UI_Files/AeroFoil_NACA4Digit_Dialog.ui, \

16:25:26 Addon Manager: Unexpected 403 response from server
16:25:26 Traceback (most recent call last):
16:25:26 File "C:\sw_inst\FC\FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64\Mod\AddonManager\addonmanager_workers.py", line 881, in run
16:25:26 self.macro.fill_details_from_wiki(url)
16:25:26 File "C:\sw_inst\FC\FreeCAD_weekly-builds-27809-Win-Conda_vc14.x-x86_64\Mod\AddonManager\addonmanager_macro.py", line 254, in fill_details_from_wiki
16:25:26 translate(
16:25:26 KeyError: 'rawcodeurl'

--------------------------------------------------

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.27809 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Installed mods:
* 3D_Printing_Tools
* Assembly4 0.11.10
* BIM 2021.12.0
* BIMBots
* BOLTS
* BOLTSFC
* CurvedShapes 1.0.1
* Curves 0.3.0
* dodo
* fasteners 0.3.38
* FCGear 1.0.0
* FEM_FrontISTR
* kicadStepUpMod 10.10.6
* MeshRemodel 1.8919.0
* nurbs
* POV-Ray-Rendering
* Render 2022.1.0
* sheetmetal 0.2.49
* trails
Attachments
2022-03-09 16_14_11-FreeCAD 0.20.png
2022-03-09 16_14_11-FreeCAD 0.20.png (42.66 KiB) Viewed 2286 times
2022-03-09 16_13_52-FreeCAD 0.20.png
2022-03-09 16_13_52-FreeCAD 0.20.png (46.34 KiB) Viewed 2286 times
User avatar
chennes
Veteran
Posts: 3878
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Curves workbench

Post by chennes »

Do you have any messages in the Report View? Sorry, somehow missed the middle of the post!

None of the errors from the Addon Manager would affect whether Curves loads or not -- do you have logging turned on? If so, can you take a look at the output log file and see if there is anything unusual in the initialization of Curves?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3878
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Curves workbench

Post by chennes »

seppelw wrote: Wed Mar 09, 2022 3:15 pm Log when I open and close the addon:
...
Could you please post to the Addon Manager discussion topic to try to get those AM errors resolved? It looks like some bad cache data.
https://forum.freecadweb.org/viewtopic.php?f=9&t=64628
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Curves workbench

Post by Kunda1 »

Heads-up:
[Bug] Rotating the zebra lines is also rotating the reference image/s
https://github.com/tomate44/CurvesWB/issues/64

phpBB [video]
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
miniellipse
Posts: 101
Joined: Tue Apr 24, 2018 9:09 pm

Re: Curves workbench

Post by miniellipse »

drmacro wrote: Sat Jan 01, 2022 7:24 pm Hmm...loaded an offending file, ran the code, closed/opened file:

Edit: it appears to work on some files.

Code: Select all

14:19:23  Traceback (most recent call last):
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 196, in onChanged
    self.execute(fp)
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 179, in execute
    self.makeRibs(prop)
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 114, in makeRibs
    if (obj.Surface or obj.Solid) and obj.Items > 1:
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Surface'
14:19:23  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:19:23  Creation of surface is not possible !
14:19:23  <Part> ViewProviderExt.cpp(1306): Cannot compute Inventor representation for the shape of sink#CurvedArray: Bnd_Box is void
14:19:23  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:19:23  Creation of surface is not possible !
14:19:23  <Part> ViewProviderExt.cpp(1306): Cannot compute Inventor representation for the shape of sink#CurvedArray: Bnd_Box is void
14:19:23  Traceback (most recent call last):
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 196, in onChanged
    self.execute(fp)
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 179, in execute
    self.makeRibs(prop)
  File "/home/mac/.local/share/FreeCAD/Mod/CurvedShapes/CurvedArray.py", line 114, in makeRibs
    if (obj.Surface or obj.Solid) and obj.Items > 1:
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'Surface'
14:19:23  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:19:23  Creation of surface is not possible !
14:19:23  <Part> ViewProviderExt.cpp(1306): Cannot compute Inventor representation for the shape of sink#CurvedArray001: Bnd_Box is void
14:19:23  16Standard_Failure Need at least two vertices, edges or wires to create loft face
14:19:23  Creation of surface is not possible !
14:19:23  <Part> ViewProviderExt.cpp(1306): Cannot compute Inventor representation for the shape of sink#CurvedArray001: Bnd_Box is void
14:19:23  AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
14:19:23  AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
This is the 2nd file where it didn't work. The 1st was past forum limit.
Hi drmacro,
Did you ever solve the above problem on your mac. I have similar problem which I posted to this forum:
https://forum.freecadweb.org/viewtopic. ... 13#p583313
I have a feeling my system upgrade to osx Monterey might be to blame, but I do not know how to fix. Any help is appreciated.

Thank you.
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench - Mixed curves tool

Post by drmacro »

Not sure if this is a bug or expected behaviour.

When I make the curves in orange and blue, the result of Mixed curve is in black. The mid section of the resulting curve is missing...
Attachments
Snip macro screenshot-48710d.png
Snip macro screenshot-48710d.png (53.64 KiB) Viewed 1864 times
Example_Curves_Mixed curves_missing-section.FCStd
(23.32 KiB) Downloaded 33 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Curves workbench

Post by Chris_G »

This is an expected corner case.
The mixed curve is the intersection of the 2 extruded input curves.
For the middle segment, the 2 input lines generate identical planes when extruded, so their intersection is not a defined curve, but this whole plane.
Fortunately, the MixedCurve doesn't fail, but simply ignores the missing segment, so you can fill it with a parametric line, or interpolation curve, or blendcurve.
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves workbench

Post by drmacro »

Chris_G wrote: Sat Apr 02, 2022 2:42 pm This is an expected corner case.
The mixed curve is the intersection of the 2 extruded input curves.
For the middle segment, the 2 input lines generate identical planes when extruded, so their intersection is not a defined curve, but this whole plane.
Fortunately, the MixedCurve doesn't fail, but simply ignores the missing segment, so you can fill it with a parametric line, or interpolation curve, or blendcurve.
Thanks for the info!
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
hammax
Veteran
Posts: 1985
Joined: Thu Jan 19, 2017 5:03 pm
Location: Ammersee DE

Re: Curves workbench

Post by hammax »

... playing with MixedCurve I understand, there always are 3 possible combination partners.
They can be substituted by an Extrude pair and the Section tool in PartWB.
(Is it also possible to do MixedCurve with "oblique projections" - no - because of axis direction constraint ?)

MixCurvTool.png
MixCurvTool.png (13.85 KiB) Viewed 1665 times

Testing the above example, there are some discrepancies in the bending curves ????

MixedCurve_Var.PNG
MixedCurve_Var.PNG (49.12 KiB) Viewed 1733 times
Attachments
Mixed curves_missing-section_2.FCStd
FC.19.4
(48.78 KiB) Downloaded 29 times
Post Reply