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
This is a CurvesWB bug.
No time right now. I'll have a look tomorrow.
No time right now. I'll have a look tomorrow.
Re: Curves workbench
Thanks!
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: Curves workbench
Bug fixed. Thanks.drmacro wrote: ↑Mon Aug 02, 2021 12:27 pm Not sure if this is my problem, or FC, or Curves...
If you select an edge from a Body that has been transformed (as well as the sketch for the body having an attachment offset) and discretize the edge, it is at the original angle of the sketch offset, but at the original origin of the sketch.
Re: Curves workbench
Dear @Chris_G,
How can I use the Curves workbench from Python? I would like to import the interpolate module.
Thank you,
Zoltan
How can I use the Curves workbench from Python? I would like to import the interpolate module.
Thank you,
Zoltan
Re: Curves workbench
Many tools in Curves are mainly Gui upon existing Part API.
So these tools are not supposed to be re-used in other scripts.
The interpolate tool is based on Part.BSplineCurve.interpolate :
Code: Select all
help(Part.BSplineCurve.interpolate)
interpolate(...)
Replaces this B-Spline curve by interpolating a set of points.
The function accepts keywords as arguments.
interpolate(Points = list_of_points)
Optional arguments :
PeriodicFlag = bool (False) : Sets the curve closed or opened.
Tolerance = float (1e-6) : interpolating tolerance
Parameters : knot sequence of the interpolated points.
If not supplied, the function defaults to chord-length parameterization.
If PeriodicFlag == True, one extra parameter must be appended.
EndPoint Tangent constraints :
InitialTangent = vector, FinalTangent = vector
specify tangent vectors for starting and ending points
of the BSpline. Either none, or both must be specified.
Full Tangent constraints :
Tangents = list_of_vectors, TangentFlags = list_of_bools
Both lists must have the same length as Points list.
Tangents specifies the tangent vector of each point in Points list.
TangentFlags (bool) activates or deactivates the corresponding tangent.
These arguments will be ignored if EndPoint Tangents (above) are also defined.
Note : Continuity of the spline defaults to C2. However, if periodic, or tangents
are supplied, the continuity will drop to C1.
Re: Curves workbench
OK, thank you. In the meantime, I wrote my wrapper around Part.BSplineCurve.interpolate based on the code of your workbench.Many tools in Curves are mainly Gui upon existing Part API.
So these tools are not supposed to be re-used in other scripts.
- byteofsoren
- Posts: 6
- Joined: Tue Dec 29, 2020 11:00 pm
Re: Curves workbench
Hi. I think I found a bug.
When I reopen a file that uses rails I get
Hope that this helps.
When I reopen a file that uses rails I get
Code: Select all
File "/home/magnus/.FreeCAD/Mod/Curves/freecad/Curves/approximate.py", line 204, in execute
num = len(self.Points)
<class 'AttributeError'>: 'Approximate' object has no attribute 'Points'
15:24:03 Recompute failed! Please check report view.
Re: Curves workbench
Please always add your full About info when reporting potential bugs. Hi and welcome to the forum.
Oh yea...are you using the most up to date version of the Curves Workbench? (You can check by going to Addon Manager -> highlighting the Curves WB and clicking update.
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
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
- byteofsoren
- Posts: 6
- Joined: Tue Dec 29, 2020 11:00 pm
Re: Curves workbench
Shure was, updated it.
Thank you for your hard work.
/MS
Thank you for your hard work.
/MS
-
- Veteran
- Posts: 7791
- Joined: Tue Jan 07, 2014 11:10 am
- Contact:
Re: Curves workbench
Hello Chris,
please be so kind and check the tool reflect Lines. I have a plastic part with bevels and rounded edges and would like to have the silhoette edge from the radii for the parting surface of mould inserts. Reflect Lines produces a curve, but it is not at the geometry but far outside.
I am enclosing a sample file for you.
Many greetings, Wilfried
please be so kind and check the tool reflect Lines. I have a plastic part with bevels and rounded edges and would like to have the silhoette edge from the radii for the parting surface of mould inserts. Reflect Lines produces a curve, but it is not at the geometry but far outside.
I am enclosing a sample file for you.
Many greetings, Wilfried
Code: Select all
OS: Ubuntu 18.04.5 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: a0d860679ef6c932e2997d712210e2832f7ebb65
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.5.2
Locale: German/Germany (de_DE)