mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-19 09:28:32 +00:00
Dropped unnecessary simplify method
This commit is contained in:
parent
ca30b5c888
commit
14a67a473e
@ -57,7 +57,10 @@ namespace OSCADSharp.Utility.Images
|
|||||||
{
|
{
|
||||||
Bitmap img = new Bitmap(Image.FromFile(this.imagePath));
|
Bitmap img = new Bitmap(Image.FromFile(this.imagePath));
|
||||||
this.setColorArray(img);
|
this.setColorArray(img);
|
||||||
this.simplifyColors(img);
|
|
||||||
|
var simplifier = new ImageSimplifier(img.Width, img.Height, pixels);
|
||||||
|
simplifier.BasicResample(this.simplificationAmount);
|
||||||
|
|
||||||
this.htMapper = new HeightMapper(img.Width, img.Height, pixels, this.heightMode);
|
this.htMapper = new HeightMapper(img.Width, img.Height, pixels, this.heightMode);
|
||||||
this.htMapper.SetHeightMappings();
|
this.htMapper.SetHeightMappings();
|
||||||
|
|
||||||
@ -87,13 +90,7 @@ namespace OSCADSharp.Utility.Images
|
|||||||
} while (start != null);
|
} while (start != null);
|
||||||
|
|
||||||
return cubes;
|
return cubes;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void simplifyColors(Bitmap img)
|
|
||||||
{
|
|
||||||
var simplifier = new ImageSimplifier(img.Width, img.Height, pixels);
|
|
||||||
simplifier.BasicResample(this.simplificationAmount);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setColorArray(Bitmap img)
|
private void setColorArray(Bitmap img)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user