Add triangulation of polygon
This commit is contained in:
@@ -28,6 +28,12 @@ namespace DataAccess.DTOs
|
||||
(this, new CircleShapeFromDTOConvertStrategy(this));
|
||||
NewItem = circleConvertStrategy.Convert(circleShapeDTO);
|
||||
}
|
||||
else if (source is LinePolygonShapeDTO linePolygonDTO)
|
||||
{
|
||||
var polygonConvertStrategy = new DictionaryConvertStrategy<ILinePolygonShape, ILinePolygonShape>
|
||||
(this, new LinePolygonFromDTOConvertStrategy(this));
|
||||
NewItem = polygonConvertStrategy.Convert(linePolygonDTO);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknownObj(source) + ": shape is unknown");
|
||||
|
||||
Reference in New Issue
Block a user