public PrintModel copyPrintModel() { PrintModel stl = new PrintModel(); stl.filename = filename; stl.name = name; stl.lastModified = lastModified; stl.Position.x = Position.x; stl.Position.y = Position.y + 5 + yMax - yMin; stl.Position.z = Position.z; stl.Scale.x = Scale.x; stl.Scale.y = Scale.y; stl.Scale.z = Scale.z; stl.Rotation.x = Rotation.x; stl.Rotation.y = Rotation.y; stl.Rotation.z = Rotation.z; stl.Selected = false; stl.activeModel = activeModel; stl.originalModel = originalModel.Copy(); if (repairedModel != null) { stl.repairedModel = repairedModel.Copy(); } else { stl.repairedModel = null; } stl.UpdateBoundingBox(); return(stl); }
public PrintModel copyPrintModel() { PrintModel stl = new PrintModel(ctrl); stl.filename = filename; stl.name = name; stl.lastModified = lastModified; stl.Position.X = Position.X; stl.Position.Y = Position.Y + 5 + yMax - yMin; stl.Position.Z = Position.Z; stl.Scale.X = Scale.X; stl.Scale.Y = Scale.Y; stl.Scale.Z = Scale.Z; stl.Rotation.X = Rotation.X; stl.Rotation.Y = Rotation.Y; stl.Rotation.Z = Rotation.Z; stl.Selected = false; stl.activeModel = activeModel; stl.originalModel = originalModel.Copy(); if (repairedModel != null) { stl.repairedModel = repairedModel.Copy(); } else { stl.repairedModel = null; } stl.UpdateBoundingBox(); return(stl); }
public void Reset() { repairedModel = originalModel.Copy(); repairedModel.Analyse(); ShowRepaired(true); }