2D representation of door style

Hi
I am doing a definition of a door style in grasshopper and used the %<this.host.thickness>% in the rectangle dimension that posterly generate the door frame. As the image shows this is happening in the 2d representation. How could I manage to the wall reach the frame properly?

Hi @Leo13 do you want to get rid of that edge, in the encounter of the wall with the door frame?

Then you need to define the opening size of your door according to d2, instead of d1.