Let's say we have a 2D Polygon ( it can be concaved or convex), and on top of this polygon we are required to build a house roof. What is the algorithm that one can use for this?
- The roof cannot be 0 degree or 90 degree.
- The created roof piece must be as smooth as possible ( smooth is defined as first order differentiable), meaning the slope of the roof must not change unnecessarily.
I'm sorry if the conditions sound vague. If you get lost, just think about this: you have a house, how do you generate the roof profile?
Note: The roof plan must be uniformly sloping, so no circle, or bump can be used.