The geometry is parametrized by four parameters:
The solution is to define displacement field that deforms the unit square into desired shape via “Wrap by vector” filter.
The displacement field is defined as the sum of three displacement fields:
U1 - responsible of scaling unit square into W by H rectangle : $[x\cdot W, y\cdot H]$
U2 - responsible of scaling east edge from length H to length HL : $[0, -(H-HL)\cdot x\cdot y]$.
U3 - responsible of translating east edge vertically by distance H+TD-HL : $[0, (H+TD-HL)\cdot x]$.
The visualization pipeline:
Here one can find ParaView state file with the solution.