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

Draft: Some fixes in upgrade function #4067

Merged
merged 1 commit into from Nov 25, 2020

Conversation

marioalexis84
Copy link
Member

@marioalexis84 marioalexis84 commented Nov 20, 2020

Related to 0004460: Draft Upgrade - Incorrect result
The reported bug is due a error in isCoplanar function, which is now fixed. For a more detailed explanation, see https://forum.freecadweb.org/viewtopic.php?f=23&t=51200&p=440821#p440821
The expected functionality in the report is out of the scope of current implementations of joinFaces and concatenate functions, which only work on flat shapes.
The bug 0004462: Upgrade from shell to solid failed - UnboundLocalError is fixed.
The bug 0004080: Draft upgrade make face fails with a sketch contatining multiple closed loops is fixed.
Now, joinFaces can deal with faces which generates internal holes when are joined.
There is a change in the Update workflow:
If multiple faces are selected, the update function converts it to a shell or compound. On the next call, if all the faces are coplanar, a single refined face is created, or, if the shell is closed, a solid is created.

There is a possible limited functionality to refine faces created on planes other than xy, yz, xz due the precision of the shapes needed in Part.makeFace

Thank you for creating a pull request to contribute to FreeCAD! To ease integration, please confirm the following:

  • Branch rebased on latest master git pull --rebase upstream master
  • Unit tests confirmed to pass by running ./bin/FreeCAD --run-test 0
  • Commit message is well-written
  • Commit message includes issue #<id> or fixes #<id> where <id> is the associated MantisBT issue id if one exists

And please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 0.19 Changelog Forum Thread.


@luzpaz
Copy link
Contributor

luzpaz commented Nov 20, 2020

@marioalexis84 thank you for the PR.
An aside: please consider using the webhook triggers that auto-reference our bugtracker to help the devs save time.

@marioalexis84
Copy link
Member Author

thanks @luzpaz , I have already modified the commit message.

@marioalexis84
Copy link
Member Author

@luzpaz 0004462: Upgrade from shell to solid failed - UnboundLocalError was closed in the bug tracker, but in this PR there is a change in the makeSolid function that prevents the reported error message.

@luzpaz
Copy link
Contributor

luzpaz commented Nov 20, 2020

Thanks, I think the webhooks may still work on a closed ticket. But JIC, i reopened 4462 on the tracker.
Note: JFYI, by writing
Draft: Some fixes in upgrade function. bugs #0004460, #0004462
you know you are simply notating the tickets instead of closing them, right?

@marioalexis84
Copy link
Member Author

Thanks, I think the webhooks may still work on a closed ticket. But JIC, i reopened 4462 on the tracker.
Note: JFYI, by writing
Draft: Some fixes in upgrade function. bugs #0004460, #0004462
you know you are simply notating the tickets instead of closing them, right?

Yes, it is clarified in the link that you gave me

@luzpaz
Copy link
Contributor

luzpaz commented Nov 20, 2020

Yes, it is clarified in the link that you gave me

Then in that case what is left for 4462 beside this commit ?

@marioalexis84
Copy link
Member Author

marioalexis84 commented Nov 20, 2020

I am sorry, I mistook.
Would you rather I change the commit message to something like "bug #4460, fixes #4462"?
there is also another commit to resolve the bug #4080. Do you want me to add it to this PR?

@luzpaz
Copy link
Contributor

luzpaz commented Nov 21, 2020

Whatever is relevant, sure. Just remember every code push triggers TravisCI.

@yorikvanhavre
Copy link
Member

Thanks! Merging. In case the "automatic" bug closing doens't work, it's no big deal... Just close them manually ;)

@yorikvanhavre yorikvanhavre merged commit e3e6f64 into FreeCAD:master Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants