add make Polygon2D generic for different node types
restrict the input of Model2D constructor and elements id settings