@Override
public Polygons build()
{
if (this.data == null)
throw new IllegalStateException("data not set");
final Polygons polygons = new Polygons(this.count);
polygons.getData().addAll(this.data);
polygons.setMaterial(this.material);
polygons.setName(this.name);
polygons.getInputs().addAll(this.inputs);
return polygons;
}