Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bspline coming out as straight line in print #13699

Open
2 tasks done
theosib opened this issue Apr 28, 2024 · 4 comments
Open
2 tasks done

bspline coming out as straight line in print #13699

theosib opened this issue Apr 28, 2024 · 4 comments
Labels
Bug This issue or PR is related to a bug WB Sketcher Related to the Sketcher Workbench

Comments

@theosib
Copy link

theosib commented Apr 28, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

I have used a bspline to join two arcs. There are two segments to the bspline, and each segment has been made tangent to its adjoining arc. The spline looks just fine in the sketcher, but in both the part design view and the exported STEP file, it comes out as a straight line.

I've attached three images. The one from the sketcher looks fine. But other two are from the part design view and from the slicer, and both have a weird kink.

image
image
image

BTW, I would be happy to upload the FCStd file here, but I get a "we don't support that file type" error. (EDIT: uploaded, see comment.)

Full version info

[code]
OS: macOS 13.6
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.2)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.10.13, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.6, OCC 7.6.3
Locale: C/Default (C)
[/code]

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@theosib
Copy link
Author

theosib commented Apr 28, 2024

Here's the cad file zipped.
card case.FCStd.zip

@maxwxyz maxwxyz added WB Sketcher Related to the Sketcher Workbench Bug This issue or PR is related to a bug labels Apr 29, 2024
@maxwxyz
Copy link
Collaborator

maxwxyz commented Apr 29, 2024

@AjinkyaDahale FYI

@AjinkyaDahale
Copy link
Contributor

Is this fixed if we use, say, a similarly shaped polyline instead?

@AjinkyaDahale
Copy link
Contributor

The biggest issue is the discretiziation. The splines are extremely skewed, and thus have a lot of variability in curvature. However, the discretization is (by my guess) done based on the parameter, which is not fine enough where it's needed.

Here are some possibilities:

  1. Increase the degree of each spline, and try to adjust after that, so that the curvature doesn't change that drastically. A cubic spline should do very well. There will still be some degrees of freedom left after all current are applied, but maybe try block constraint after.
  2. Try changing the curvature or position of the smaller arcs.
    Screenshot from 2024-05-10 12-35-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug WB Sketcher Related to the Sketcher Workbench
Projects
None yet
Development

No branches or pull requests

3 participants