Added code for hidden line removal