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
[Sketcher] Fixing some issues with "Convert to NURBS" #6403
[Sketcher] Fixing some issues with "Convert to NURBS" #6403
Conversation
@luzpaz @abdullahtahiriyo need some input on the renaming commit. When I just made changes in |
So https://wiki.freecad.org/Sketcher_BSplineConvertToNURB redirects to Sketcher_BSplineApproximate on the wiki. |
|
|
||
CmdSketcherConvertToNURB::CmdSketcherConvertToNURB() | ||
CmdSketcherConvertToNURBS::CmdSketcherConvertToNURBS() | ||
: Command("Sketcher_BSplineConvertToNURB") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edited: you missed this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about that. But possibly. That is the name we use in code, and NURBS is more common than NURB. This was in reply to the unedited comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Should be fixed now.
See line 407, So you're proposing the wiki page Sketcher_BSplineConvertToNURB should be un-redirected and renamed to Sketcher_BSplineConvertToNURBS ? Edit: the GH UI wasn't cooperating with me. Sorry for all the noise. |
5d8d158
to
55587ca
Compare
As I said in the review line, that's possibly what needs to be done. Alternatively if we want to use |
I have browse the code. I think you no longer need my input. Am I right? |
Actually I kind of do. @luzpaz resolved point 1 but I'm having some annoying segfault/core dump when trying point 2. I will update in a while. |
@abdullahtahiriyo take a look at https://forum.freecadweb.org/viewtopic.php?f=19&t=66470&p=573113#p573113. That thread talks about a crash in |
c4b3030
to
cd53803
Compare
cd53803
to
853fdc4
Compare
I think the crash I described is fixed with some changes and this PR is ready for review. @abdullahtahiriyo this still needs your input. Apart from the code review, we should decide between |
853fdc4
to
2e8198a
Compare
2e8198a
to
17eb6b5
Compare
The S in NURBS stands for Spline
The control points are needed to edit the converted B-Spline
17eb6b5
to
7393b55
Compare
Fixes include:
CmdSketcherConvertToNURB
toCmdSketcherConvertToNURBS
.