Door cutting depth
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Door cutting depth
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.24910 (Git)
Build type: Release
Branch: master
Hash: 089b2ae47824232f649eb74ce1f97673cf77b78c
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/Australia (en_AU)
Hi All
Just playing with the BIM workbench, I have a small issue that I can't work out
With reference to the attached pic, can the cut depth of the door be controlled so as not to cut thru adjacent walls
thanks Andrew
Word size of FreeCAD: 64-bit
Version: 0.20.24910 (Git)
Build type: Release
Branch: master
Hash: 089b2ae47824232f649eb74ce1f97673cf77b78c
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/Australia (en_AU)
Hi All
Just playing with the BIM workbench, I have a small issue that I can't work out
With reference to the attached pic, can the cut depth of the door be controlled so as not to cut thru adjacent walls
thanks Andrew
Re: Door cutting depth
Change the 'Hole Depth' of the window. By default it is zero meaning the dimensions of the window determine the actual depth of the 'subtractor' solid.
Re: Door cutting depth
Thanks, Roy_043
Perfect worked, can this be a default or needs adjusting for each door?
Andrew
Perfect worked, can this be a default or needs adjusting for each door?
Andrew
Re: Door cutting depth
thanks mate...
Re: Door cutting depth
The current algorithm (to my memory only, not checked the code) use the boundbox of the Window/Doorto determine the depth of hole to cut.
I had once thought it should use the Wall Thickness, probably x1.01 would be good enough.
Any thought? And someone would like to dig into the code?
I had once thought it should use the Wall Thickness, probably x1.01 would be good enough.
Any thought? And someone would like to dig into the code?
Re: Door cutting depth
If you create a wall from an existing solid the Width is a dummy value. How would you handle that case?
Re: Door cutting depth
Currently, after checking, the code check the Window's Base (Sketch) Boundbox, which does not seems right.
It seems better to be :-
It seems better to be :-
- If the Host object to cut is Wall, use its Width (Thickness of Wall) x2 say
(x2 to take in consideration the base Sketch is not lying on the Wall's surface) - If it is a solid, may check it Boundbox. Better still, check the Thickness in the direction of Normal to the Window's (Base)
(Any idea how to do it mathematically ?) - Any other scenarios ?
Re: Door cutting depth
#2: The wall solid might be as complex as the blue solid in the OP's image, and might include cavity walls (f.e. the outer plies of a metal stud wall).
Perhaps the hole depth should have a reasonable default value instead. 500mm perhaps?
You could introduce a parameter for this: default=0mm results in the current behavior.
Perhaps the hole depth should have a reasonable default value instead. 500mm perhaps?
You could introduce a parameter for this: default=0mm results in the current behavior.
Re: Door cutting depth
Yes indeed, would be difficult for a complicated Solid case, then one of the default / fallback option is to have a hole depth e.g. 500mm hardcodedRoy_043 wrote: ↑Mon Jun 14, 2021 6:41 pm #2: The wall solid might be as complex as the blue solid in the OP's image, and might include cavity walls (f.e. the outer plies of a metal stud wall).
Perhaps the hole depth should have a reasonable default value instead. 500mm perhaps?
You could introduce a parameter for this: default=0mm results in the current behavior.
For the shown blue solid, it should be an ArchWall based on a 'complex' Sketch', so should be ok to work with the ArchWall's Width
So, seems better to be :-
- If the Host object to cut is Wall, use its Width (Thickness of Wall) x2 say
(x2 to take in consideration the base Sketch is not lying on the Wall's surface) - If it is a solid, may check it Boundbox. Better still, check the Thickness in the direction of Normal to the Window's (Base)
- If none of the above, 'default / fallback' to 500mm hardcoded
- More refined control of CutHole depth, disposition, shape etc. to be defined by Subvolume Object