A tool for the interactive mesh refinement in virtual environments