Text this: Developing Geometry Based Criterion Function Method for Predicting Porosity in LM6 Castings