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 PrintModel cloneWithModel(TopoModel m, int idx) { PrintModel stl = new PrintModel(ctrl); stl.filename = ""; stl.name = name + " (" + idx + ")"; stl.lastModified = lastModified; stl.Position.X = Position.X; stl.Position.Y = Position.Y; 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 = 0; stl.originalModel = m; stl.repairedModel = null; stl.UpdateBoundingBox(); return(stl); }