Many thanks for testing! This feedback is what I need.
If possible, send me your test file. When it contains confidential things, please send me a private message.
Since the feature makes real cuts of parts, the OCC kernel fails when objects overlap each other in the assembly. This is nice to make collision checks, but often also unwanted. Therefore I am working on an option that will allow you to cut also overlapping parts in assemblies.
Your first screenshot however seems as if I made a mistake in the size determination of the block that actually cuts the assembly. I need to check this.
Since I am currently abroad and cannot have a look, can you please try to:
- select the shells (the parts inside the holes of your assembly) and make them invisible
- press the Refresh view button and recreating the cut this way
Does it fix the issue?
The design is to have an own panel that can stay open. This is important for assemblies because one need to add or remove parts to/from the cut. This can be done by either making parts in/visible but also by adding some to the assembly. Therefore it is no task dialog. A further benefit of it is that you can keep it open for a while, switch to other documents or load/unload documents
That looks really weird at your side. Here on Windows it looks correct. What is your Qt version?
I will check the dialog what went wrong here.
Currently all visible objects are cut. Introducing a new button to all tree objects would be very intrusive in terms of the core code of FreeCAD. I think using the visibility is a simple way to select what should be cut.
I thought about this a wile (the initial PR was 16 months ago ) My personal wish was that when I change a part in the assembly I can recompute the cut object and get it updated.user1234 wrote: ↑Sun Feb 06, 2022 11:56 am - The behavior at the moment is, that a cut object with its (linked) sub objects raises in the tree. I would be nice, that this is a own object, with no sub elements, only with source links to the related objects (like a View ind TechDraw). And when you doubleclick it, then you can edit this cut object. This sounds maybe odd, but i think this keeps the tree view more cleaner.
The other thing I wanted is to modify existing cut objects. To do this you need to close the cut dialog. This means you don't plan to cut. On reopening the dialog, the tree is checked for an existing cut objects. if there is any, its values are read and the sliders and cut values are setup accordingly. When this doesn't work, please tell me because this is then a bug.
I don't know how this could be achieved. Basically the cutting feature as it is uses a block. The objects to be cut are put into a compound and the block cuts the compound using Part's cut feature. You can try it, when you add a sketch to the compound, the block won't cut it. For me this is OK since the cutting feature is designed to cut 3D objects.
How could this be done?
The only way of graphical cuts I know is the existing Clip View tool. Since most solid objects in OCC consists only of outer shells/faces, the Clipping tool delivers hollow objects, see my initial post in this thread. This was the starting point for me because these cuts were useless for me.
many thanks and regards
Uwe