private void lblZ_Click(object sender, EventArgs e) { Object3d o = UVDLPApp.Instance().SelectedObject; if (o != null) { //by sypark 20160204 ctlMirror.ScaleM = 1; // //by sypark 2016-02-25 UVDLPApp.Instance().m_undoer.RemoveList(); UVDLPApp.Instance().m_undoer.UpdateButtons(); UVDLPApp.Instance().m_undoer.SaveMirror(o, 1.0f, 1.0f, -1.0f); //by sypark o.Scale(1.0f, 1.0f, -1.0f); o.FlipWinding(); o.Update(); //by sypark 20160204 UVDLPApp.Instance().SelectedObject.MarkPolysDown(UVDLPApp.Instance().m_supportconfig.downangle); ctlMirror.ScaleM = 0; // } UVDLPApp.Instance().RaiseAppEvent(eAppEvent.eReDraw, ""); }
private void lblZ_Click(object sender, EventArgs e) { Object3d o = UVDLPApp.Instance().SelectedObject; if (o != null) { o.Scale(1.0f, 1.0f, -1.0f); o.FlipWinding(); o.Update(); } UVDLPApp.Instance().RaiseAppEvent(eAppEvent.eReDraw, ""); }
private void lblY_Click(object sender, EventArgs e) { Object3d o = UVDLPApp.Instance().SelectedObject; if (o != null) { //by sypark 2016-02-25 UVDLPApp.Instance().m_undoer.RemoveList(); UVDLPApp.Instance().m_undoer.UpdateButtons(); UVDLPApp.Instance().m_undoer.SaveMirror(o, 1.0f, -1.0f, 1.0f); //by sypark o.Scale(1.0f, -1.0f, 1.0f); o.FlipWinding(); o.Update(); } UVDLPApp.Instance().RaiseAppEvent(eAppEvent.eReDraw, ""); }