mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
d709cdda41
* (Change) Island detection system:
* **Before**: A island is consider safe by just have a static amount of pixels, this mean it's possible to have a mass with 100000px supported by only 10px (If safe pixels are configured to this value), so there's no relation with island size and it supporting size. This leads to a big problem and not detecting some potential/unsafe islands.
* **Now:** Instead of a static number of safe pixels, now there's a multiplier value, which will multiply the island total pixels per the multiplier, the supporting pixels count must be higher than the result of the multiplication.
* **Formula:** Supporting pixels >= Island pixels * multiplier
* **Example:** Multiplier of 0.25, an island with 1000px * 0.25 = 250px, so this island will not be considered if below exists at least 250px to support it, otherwise will be flagged as an island.
* **Notes:** This is a much more fair system but still not optimal, bridges and big planes with micro supports can trigger false islands. While this is a improvement over old system it's not perfect and you probably will have islands which you must ignore. Renember that you not have to clear out the issue list! Simply step over and ignore the issues you think are false-positives.
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
namespace UVtools.GUI.Properties {
|
|
|
|
|
|
// This class allows you to handle specific events on the settings class:
|
|
// The SettingChanging event is raised before a setting's value is changed.
|
|
// The PropertyChanged event is raised after a setting's value is changed.
|
|
// The SettingsLoaded event is raised after the setting values are loaded.
|
|
// The SettingsSaving event is raised before the setting values are saved.
|
|
internal sealed partial class Settings {
|
|
|
|
public Settings() {
|
|
// // To add event handlers for saving and changing settings, uncomment the lines below:
|
|
//
|
|
// this.SettingChanging += this.SettingChangingEventHandler;
|
|
//
|
|
// this.SettingsSaving += this.SettingsSavingEventHandler;
|
|
//
|
|
}
|
|
|
|
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
|
|
// Add code to handle the SettingChangingEvent event here.
|
|
}
|
|
|
|
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
|
|
// Add code to handle the SettingsSaving event here.
|
|
}
|
|
}
|
|
}
|