Skip to content

Cam simulator feature update#15597

Merged
sliptonic merged 37 commits intoFreeCAD:mainfrom
shaise:CAM-Simulator3
Aug 21, 2024
Merged

Cam simulator feature update#15597
sliptonic merged 37 commits intoFreeCAD:mainfrom
shaise:CAM-Simulator3

Conversation

@shaise
Copy link
Contributor

@shaise shaise commented Jul 24, 2024

Hi all

This is a questionable PR and I need feedback (@sliptonic please also comment)
I got this info from one of the users: https://forum.freecad.org/viewtopic.php?p=772512#p772512
it seems that not only the simulator can not handle the simulation (blank screen) it can also crash freecad.
Testing it in my latest simulator update, his file worked flawlessly and of course without any crashes.
The latest update indeed treats window handling differently and much more stable. However it also contains many more features that are missing in the merged version.
I can try to pick the necessary minimum fixes needed, but though it will prevent freecad from crashing, it will probably still not work on his file.
I believe we should update the simulator completely. It will be much more suitable for a 1.0 version. Apart from the new features, there are many fundamental changes that contribute to stability.
And again - the old simulator is still there - so if there are any issues we can just not use the new one.

This version also fixes several pending issues.

shai

shaise added 27 commits May 24, 2024 11:01
@github-actions github-actions bot added the Mod: CAM Related to the CAM Workbench label Jul 24, 2024
@maxwxyz maxwxyz modified the milestone: Post 1.0 Jul 24, 2024
@luzpaz luzpaz linked an issue Jul 31, 2024 that may be closed by this pull request
2 tasks
@chennes chennes self-requested a review August 5, 2024 16:25
@shaise
Copy link
Contributor Author

shaise commented Aug 5, 2024

@chennes ,

I took a look at the Clang-Tidy report and there are like a gazilion warnings. How do I know which are important?
I fixed the stdio.h issue and some others but there are many more.

shai

@shaise
Copy link
Contributor Author

shaise commented Aug 6, 2024

For some reason all builds are failing on topological naming tests

@chennes
Copy link
Member

chennes commented Aug 7, 2024

@chennes ,

I took a look at the Clang-Tidy report and there are like a gazilion warnings. How do I know which are important? I fixed the stdio.h issue and some others but there are many more.

shai

The only ones you should be addressing are in the code touched by this PR, not anywhere else in the code. I don't see that many of them. I can probably get you a fixup commit tomorrow evening if you'd like.

Regarding the CI, a previous commit broke the helix algorithm. If you rebase now the issue should be resolved.

@shaise
Copy link
Contributor Author

shaise commented Aug 7, 2024

I don't see that many of them.

I'm probably doing something wrong when I analyze the lint results as I don't see any way to separate the warnings on the code changes from the entire list of warnings. If you can make a fixup commit that would be great.
Thanks!

shai

@shaise
Copy link
Contributor Author

shaise commented Aug 11, 2024

@chennes , Thanks!

@chennes
Copy link
Member

chennes commented Aug 12, 2024

More incoming tomorrow I hope.

@Unl0gic
Copy link
Contributor

Unl0gic commented Aug 14, 2024

This feature update fixes a bug which causes FreeCAD to crash without any warning. So from a CAM/PATH user perspective it would be great if this update could be merged before the 1.0 release.

@yorikvanhavre
Copy link
Member

This is deemed good to merge but needs rebasing

@shaise
Copy link
Contributor Author

shaise commented Aug 19, 2024

Hi @sliptonic
branch was rebased and looks like all checks are good. Will this be merged now?

@sliptonic
Copy link
Member

Hi @sliptonic branch was rebased and looks like all checks are good. Will this be merged now?

The branch has 36 commits. A lot of those are just merges from main. Can the entire PR be squashed down to 1 commit? If so, I think I can merge it directly. If you want to preserve any commits, I think you should do an interactive rebase and remove the noise.

@shaise
Copy link
Contributor Author

shaise commented Aug 21, 2024

I will try to make it a single commit. I can hold the history in a separate branch.

@sliptonic
Copy link
Member

I will try to make it a single commit. I can hold the history in a separate branch.

Merging it automatically into one commit is easy. I can do that automatically from Github. It's only if you want to preserve intermediate commits in the shared history.

@shaise
Copy link
Contributor Author

shaise commented Aug 21, 2024

Oh! that would be great... I just started a tedious process to do it manually by copying files...
If it can be done automatically, go ahead, I do not need the history.
Thanks!

@sliptonic sliptonic merged commit a750034 into FreeCAD:main Aug 21, 2024
@shaise shaise deleted the CAM-Simulator3 branch August 27, 2024 19:08
bgbsww pushed a commit to bgbsww/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
bgbsww pushed a commit to bgbsww/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
aiksiongkoh pushed a commit to Ondsel-Development/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
aiksiongkoh pushed a commit to Ondsel-Development/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
aiksiongkoh pushed a commit to Ondsel-Development/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
aiksiongkoh pushed a commit to Ondsel-Development/FreeCAD that referenced this pull request Sep 4, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
hoshengwei pushed a commit to hoshengwei/FreeCAD that referenced this pull request Oct 15, 2024
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue FreeCAD#14369

* fix bad simulation artifacts under Linux and QT. Issue FreeCAD#14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue FreeCAD#14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mod: CAM Related to the CAM Workbench

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CAM: OpenGL problem - New CAM-Simulator doesn't work on Linux with Wayland New Cam simulator: resizing window does not affect viewing area

8 participants