Fix incorrect phy data structures
Change virtual mesh creation to directly use vertex and index data
Refactor new trace code