#22 added automatic generation of local normals