void item_Click(object sender, EventArgs e) { EnumGu type = (EnumGu)((ToolStripMenuItem)sender).Tag; if (Mesh == null) { return; } ControllerGu.Instance.Run(Mesh, type); OnChanged(EventArgs.Empty); }
public void Run(TriMesh mesh, EnumGu type) { switch (type) { case EnumGu.GlobalConformal: MappingGauss(mesh); break; case EnumGu.GenusOneSphere: MappingSphericalTuette(mesh); break; case EnumGu.GaussMap: MappingGauss(mesh); break; } }