private double[, ][] _GetDefaultNormalVectors() { FromTextureNormalVectorsGenerator normalVectorsGenerator; normalVectorsGenerator = new FromTextureNormalVectorsGenerator(new FastBitmap(new Bitmap(_defaultNormalVectorsMapPath), _canvasWidth, _canvasHeight)); return(normalVectorsGenerator.GetNormalVectors()); }
private double[, ][] _GetNormalVectors() { NormalVectorsGenerator normalVectorsGenerator = null; switch (_userPreferences.NormalVectorsType) { case NormalVectorsType.FromTexture: normalVectorsGenerator = new FromTextureNormalVectorsGenerator(_userPreferences.NormalVectorsMap); break; case NormalVectorsType.Pyramid: normalVectorsGenerator = new PyramidNormalVectorsGenerator(_canvasWidth, _canvasHeight); break; case NormalVectorsType.None: return(_previousFilling?.NormalVectors ?? _GetDefaultNormalVectors()); } return(normalVectorsGenerator.GetNormalVectors()); }