move mesh evaluation math into util/