Door cutting depth

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
dammerel
Posts: 98
Joined: Sat Aug 09, 2014 2:15 am

Door cutting depth

Post by dammerel »

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
Capture.JPG
Capture.JPG (37.65 KiB) Viewed 2062 times
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Door cutting depth

Post by Roy_043 »

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.
dammerel
Posts: 98
Joined: Sat Aug 09, 2014 2:15 am

Re: Door cutting depth

Post by dammerel »

Thanks, Roy_043
Perfect worked, can this be a default or needs adjusting for each door?
Andrew
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Door cutting depth

Post by Roy_043 »

dammerel wrote: Mon Jun 14, 2021 6:20 am needs adjusting for each door?
AFAIK there is no way to set a default, but you can change multiple windows at once.
dammerel
Posts: 98
Joined: Sat Aug 09, 2014 2:15 am

Re: Door cutting depth

Post by dammerel »

thanks mate...
paullee
Veteran
Posts: 5092
Joined: Wed May 04, 2016 3:58 pm

Re: Door cutting depth

Post by paullee »

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? :)
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Door cutting depth

Post by Roy_043 »

If you create a wall from an existing solid the Width is a dummy value. How would you handle that case?
paullee
Veteran
Posts: 5092
Joined: Wed May 04, 2016 3:58 pm

Re: Door cutting depth

Post by paullee »

Currently, after checking, the code check the Window's Base (Sketch) Boundbox, which does not seems right.

It seems better to be :-
  1. 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)
  2. 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 ?)
  3. Any other scenarios ?
Thanks :)
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Door cutting depth

Post by Roy_043 »

#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.
paullee
Veteran
Posts: 5092
Joined: Wed May 04, 2016 3:58 pm

Re: Door cutting depth

Post by paullee »

Roy_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.
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 hardcoded :)

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 :-
  1. 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)
  2. If it is a solid, may check it Boundbox. Better still, check the Thickness in the direction of Normal to the Window's (Base)
  3. If none of the above, 'default / fallback' to 500mm hardcoded
  4. More refined control of CutHole depth, disposition, shape etc. to be defined by Subvolume Object
Post Reply