Most permanent model railroad layouts are somewhat mountainous but fences that one can buy are usually only made for flat landscapes. To my knowledge, only PECO has addressed this issue (N/OO/O-gauge):
https://peco-uk.com/products/flexible-fencing
https://peco-uk.com/products/flexible-field-fencing?_pos=27&_sid=c4b73b5b2&_ss=r
https://peco-uk.com/products/flexible-fencing-and-gates
and Woodland scenics:
https://woodlandscenics.woodlandscenics.com/show/item/A2990
https://woodlandscenics.woodlandscenics.com/show/item/A2980
https://woodlandscenics.woodlandscenics.com/show/item/A3000
Here is my DIY-solution.
The fence panels are designed in 2.5 degree increments from -50 to +50 degrees and there are three lengths. This should allow to follow any relevant landscape with the stanchions staying vertical. The assembly is a bit fiddly, but at least I like the result. Maybe someone else has use of this solution.
Since I quickly get confused with the different fence panels, I printed a sorting box. And as a sorting aid there is a scale (PDF file for printing).
The fences are in n-scale (1:160), conversion values:
British N-scale, 1:148 -> 108%
TT-gauge, 1:120 -> 133%
HO/H0-gauge, 1:87 -> 184%
OO/00-gauge, 1:76 -> 210%
S-gauge, 1:64 -> 250%
O-gauge, 1:48 -> 333%
Please enjoy. Would be great to see your application.
The author marked this model as their own original creation.