I want to implement polygon offset for ShapeGeometries (2D) in three.js
The above picture is an example of how it works in CityEngine.
What would be the best way to achieve this?
UPDATE 1
The problem is also described here. However, the external C++/C#/Delphi library Clipper is used to solve the problem there. It seems like the best solution is to feed a 3rd party library with the polygon values and import the result back as three.js geometry.