Curves workbench
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Curves workbench
dear friends you understand me correctly, happy for your help! problem solved!
Re: Curves workbench
... BTW could there be a way to position points in Discretized_Edge
on a curved edge equidistant to a specified direction (e.g. X-axis)?
This would be useful for frame-arrays (aerodynamic profiles, boat-hulls a.s.o.)
Something like cross section tool in PartWB - but in this case parametric.
on a curved edge equidistant to a specified direction (e.g. X-axis)?
This would be useful for frame-arrays (aerodynamic profiles, boat-hulls a.s.o.)
Something like cross section tool in PartWB - but in this case parametric.
- Attachments
-
- middleSection_3.FCStd
- FC.18.4
- (99.09 KiB) Downloaded 55 times
Re: Curves workbench
improvement idea:
draw an arrow (cone) on the second vertex of joincurve to indicate his direction.
draw an arrow (cone) on the second vertex of joincurve to indicate his direction.
- Attachments
-
- Capture.JPG (12.84 KiB) Viewed 1623 times
Re: Curves workbench
Hi,
I'm new in using your workbench, so I'm wrong by sure.
I downloaded you example ( Boat-2.fcstd ), and I tried to make re-do the same construction, using Gordon surface.
I tried many times, but I received only the same error: not enough curves!
I suspect some mismatch in my FreeCad implementation:
I'm using FC
- OS: Ubuntu 18.04.5 LTS (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23756 (Git) AppImage
Build type: Release
Branch: master
Hash: 9c6e9184930a52b165a0b7274e3a45d1006bfe67
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)
Regards
- Piero
Re: Curves workbench
hammax very good ideas! looked at the file. very on time. I build an airplane and work with the drawing. parsed the operations in the file. worked with Discretizet_Edge. my only point is small on the screen, did not find how to do them more in order to better see them. hammax, saso, GlouGlou thanks for the help and links I am studying the material. At first I didn't even know how to make an edge, now I can make an edge and build a section
Re: Curves workbench
Interpolated Curve: I've got not regular continuity by selecting different vertex.
- Attachments
-
- interpolated_continuity.FCStd
- (94.21 KiB) Downloaded 37 times
-
- Capture.JPG (41.63 KiB) Viewed 1503 times
Re: Curves workbench
I'll have a look. Thanks.
Re: Curves workbench
Hello, my first post here. I have created in python an object made from complex surfaces. Now I want to turn it into a solid. First I tried:
Unfortunately that does not work, makeShell silently fails and makeSolid throws an error: "No shells or compsolids found in shape"
What does work to turn the faces into a solid is the ParametricSolid tool form the CurvesWB. How can I use it from Python ? I am new to freecad, but not to coding in general. I looked at the ParametricSolid code and I haven't found a specifically designed and exposed API to use this functionality from code, but maybe I looked at the wrong place.
Btw. this is just the first occasion i need to programmatically deal with curves and surfaces, more to come and curvesWB seems to offer a lot of tools to deal with such things, but I need to access it from python. If there is any link of examples of how to deal with that (I tried hard to find, bu no luck), I would be very thankful.
Code: Select all
my_shell = Part.makeShell(my_list_of_faces)
my_solid = Part.makeSolid(my_shell)
What does work to turn the faces into a solid is the ParametricSolid tool form the CurvesWB. How can I use it from Python ? I am new to freecad, but not to coding in general. I looked at the ParametricSolid code and I haven't found a specifically designed and exposed API to use this functionality from code, but maybe I looked at the wrong place.
Btw. this is just the first occasion i need to programmatically deal with curves and surfaces, more to come and curvesWB seems to offer a lot of tools to deal with such things, but I need to access it from python. If there is any link of examples of how to deal with that (I tried hard to find, bu no luck), I would be very thankful.
Re: Curves workbench
Are you sure it really works ? This tool tries to make a solid, but silently falls back to a shell or a compound if it fails :
https://github.com/tomate44/CurvesWB/bl ... lid.py#L27
BTW, I just added the actual type of the shape in the description of the ParametricSolid object.
When you build a shape, the most extensive check is to run :
Code: Select all
my_shape.check(True)
Most of the tools of the workbench are Gui tools for the Part module API, and are not supposed to be used in scripts.
No scripting doc, no API. Most CurvesWB tools create a FreeCAD FeaturePython object, where the main functionality is in the execute() function (see my link above).rsaccon wrote: ↑Mon Mar 01, 2021 7:25 am Btw. this is just the first occasion i need to programmatically deal with curves and surfaces, more to come and curvesWB seems to offer a lot of tools to deal with such things, but I need to access it from python. If there is any link of examples of how to deal with that (I tried hard to find, but no luck), I would be very thankful.
So, feel free to ask in the Python Scripting forum when you need help.