[Feature Request] Object Split enhancement
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: [Feature Request] Object Split enhancement
Most of the code is already done in Lattice2:
https://github.com/DeepSOIC/Lattice2/bl ... Filter2.py
So it can be just transferred to FC, replacing a few Lattice2-specific things, and adding the commands to toolbars and menu (adding the commands for Part WB is in C++).
https://github.com/DeepSOIC/Lattice2/bl ... Filter2.py
So it can be just transferred to FC, replacing a few Lattice2-specific things, and adding the commands to toolbars and menu (adding the commands for Part WB is in C++).
Re: [Feature Request] Object Split enhancement
It seems like the "slice" should be a new Body and hold all the features of the slice. How about the analogy of a car wheel made up of, metal wheel, lug holes, valve stem, tire. If you take a slice of the wheel assy, that should be a new Body with all those features. I presume you will want to modify it afterwards so it has to include all the sketches and features of it's original body. The "Obslice" object slice is a Body copy with a Pocket to everything else.
Re: [Feature Request] Object Split enhancement
The notion of "Body" is associated with PartDesign constructs, while slice is a pure Part thing.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: [Feature Request] Object Split enhancement
one body is a single shape. it can't split. see https://freecadweb.org/wiki/PartDesign_Body .
The only change you can do is that slice make multiple bodies.
The only change you can do is that slice make multiple bodies.
-
- Posts: 13
- Joined: Tue Oct 30, 2018 2:52 am
Re: [Feature Request] Object Split enhancement
Not what i was asking. A "slice" should cut the Body into 2 (or more) bodies, each containing the features needed to construct (parametrically if applicable ) the individual bodies. Not exactly, if you slice a wheel only that portion which has a valve stem will contain one, the other part of the slice may not. The slice is not a clone operation. A cylinder can be a body, sliced in half along the radial direction, creates two bodies. Each of which are still cylinders. However sliced to remove an arc will result in 2 bodies neither of which is necessarily a cylinder.freedman wrote: ↑Mon Dec 10, 2018 8:06 am It seems like the "slice" should be a new Body and hold all the features of the slice. How about the analogy of a car wheel made up of, metal wheel, lug holes, valve stem, tire. If you take a slice of the wheel assy, that should be a new Body with all those features. I presume you will want to modify it afterwards so it has to include all the sketches and features of it's original body. The "Obslice" object slice is a Body copy with a Pocket to everything else.
-
- Posts: 13
- Joined: Tue Oct 30, 2018 2:52 am
Re: [Feature Request] Object Split enhancement
Jee-Bee wrote: ↑Mon Dec 10, 2018 6:53 pm one body is a single shape. it can't split. see https://freecadweb.org/wiki/PartDesign_Body .
The only change you can do is that slice make multiple bodies.
That page makes no restriction whether a body can split or not. Having said that you did remark that a slice makes multiple bodies, so the end result is the node of the body you slice should be replaced by 2 nodes in the tree. I would suggest the original body would become hidden and 2 bodies would appear and be visible (also individually select-able).
Not sure precisely what the tree configuration should be.
Re: [Feature Request] Object Split enhancement
@freedman, @PlaneAnimal: either you are not familiar with the notion of a Body or you are talking about something completely different from the current Part slice operation.
What you want is different from everything we have now: new bodies are created which have generated features. Before thinking about that I would rather have the part slice-and-explode command implemented. With the work done by DeepSOIC it is within near reach as opposed to a PartDesign extension. Even more so, as there is currently hardly a developer pushing PartDesign anyway.
What you want is different from everything we have now: new bodies are created which have generated features. Before thinking about that I would rather have the part slice-and-explode command implemented. With the work done by DeepSOIC it is within near reach as opposed to a PartDesign extension. Even more so, as there is currently hardly a developer pushing PartDesign anyway.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Posts: 13
- Joined: Tue Oct 30, 2018 2:52 am
Re: [Feature Request] Object Split enhancement
@chrisb
You may be right. My lack of understanding may stem from not understanding the logic/usefulness of the current body slice functionality. Has anyone checked out my video on YT? Certainly I do not what to interrupt any work already mostly accomplished. The folks programming the software are surely mostly busy resolving bugs. What I was trying to convey is, don't need a new feature, only an enhancement to an existing feature.
The current feature already produces new bodies, they are hidden and copied and identified in the tree using the additional steps Compound->Compound Filter.... My suggestion is to remove the Compound Filter and and replace the sliced body with the resulting body slices.
Again, my post is not intended to distract the work being done.
You may be right. My lack of understanding may stem from not understanding the logic/usefulness of the current body slice functionality. Has anyone checked out my video on YT? Certainly I do not what to interrupt any work already mostly accomplished. The folks programming the software are surely mostly busy resolving bugs. What I was trying to convey is, don't need a new feature, only an enhancement to an existing feature.
The current feature already produces new bodies, they are hidden and copied and identified in the tree using the additional steps Compound->Compound Filter.... My suggestion is to remove the Compound Filter and and replace the sliced body with the resulting body slices.
Again, my post is not intended to distract the work being done.
-
- Posts: 13
- Joined: Tue Oct 30, 2018 2:52 am
Re: [Feature Request] Object Split enhancement
At best perhaps, perhaps, I can carve that into a macro. Would be a first for me.DeepSOIC wrote: ↑Mon Dec 10, 2018 7:40 am Most of the code is already done in Lattice2:
https://github.com/DeepSOIC/Lattice2/bl ... Filter2.py
So it can be just transferred to FC, replacing a few Lattice2-specific things, and adding the commands to toolbars and menu (adding the commands for Part WB is in C++).
Re: [Feature Request] Object Split enhancement
Don't call things bodies which aren't. Please follow the explanations and links above on what a body is in FreeCAD.PlaneAnimal wrote: ↑Tue Dec 11, 2018 1:12 am You may be right. My lack of understanding may stem from not understanding the logic/usefulness of the current bodyOBJECT slice functionality. ...
The current feature already produces new bodiesOBJECTs, they are hidden and copied and identified in the tree using the additional steps Compound->Compound Filter.... My suggestion is to remove the Compound Filter and and replace the sliced bodyOBJECT with the resulting bodyOBJECT slices.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.