This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.optimize import minimize | |
| from irradiance_studies_3d_corners import calc_irradiance_points | |
| import time | |
| from enum import Enum | |
| class VisualizationMode(Enum): | |
| OPTIMIZATION = "optimization" # Original optimization mode | |
| CONTRAST_MAP = "contrast_map" # 2D contrast map at fixed Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| def debug(msg): | |
| print(f"[DEBUG] {msg}") | |
| # Register custom properties | |
| def register_properties(): | |
| wm = bpy.types.WindowManager | |
| debug("Registering properties") | |
| wm.xray_sync_enabled = bpy.props.BoolProperty( |
OlderNewer