From ee732a2cca1f5503b9818f2c7972cbc121e9fd30 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Mon, 9 Feb 2026 22:28:15 -0500 Subject: [PATCH] Straight skeleton take 2 --- js/beestat/setting.js | 2 -- js/component/scene.js | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/js/beestat/setting.js b/js/beestat/setting.js index 8e240db..5719e17 100644 --- a/js/beestat/setting.js +++ b/js/beestat/setting.js @@ -83,8 +83,6 @@ beestat.setting = function(argument_1, opt_value, opt_callback) { 'visualize.three_d.show_labels': false, 'visualize.three_d.auto_rotate': false, 'visualize.three_d.show_walls': false, - 'visualize.three_d.debug_roof_edges': true, - 'visualize.three_d.debug_straight_skeleton': true, 'date_format': 'M/D/YYYY', diff --git a/js/component/scene.js b/js/component/scene.js index fcb7d53..6ddd1ed 100644 --- a/js/component/scene.js +++ b/js/component/scene.js @@ -71,7 +71,9 @@ beestat.component.scene.prototype.decorate_ = function(parent) { 'directional_light_top_helper': false, 'sun_light_helper': true, // 'grid': false, - 'watcher': false + 'watcher': false, + 'roof_edges': true, + 'straight_skeleton': true }; this.width_ = this.state_.scene_width || 800; @@ -1077,11 +1079,11 @@ beestat.component.scene.prototype.add_floor_plan_ = function() { self.add_walls_(walls_layer, group); }); - if (beestat.setting('visualize.three_d.debug_roof_edges')) { + if (this.debug_.roof_edges) { this.add_roof_outlines_(); } - if (beestat.setting('visualize.three_d.debug_straight_skeleton')) { + if (this.debug_.straight_skeleton) { this.add_roof_skeleton_debug_(); } @@ -1331,7 +1333,6 @@ beestat.component.scene.prototype.add_roof_skeleton_debug_ = function() { } successful_skeletons++; - console.log('Skeleton generated:', result.vertices.length, 'vertices,', result.polygons.length, 'faces'); // Visualize each skeleton polygon face with blue lines result.polygons.forEach(function(face) { @@ -1366,7 +1367,6 @@ beestat.component.scene.prototype.add_roof_skeleton_debug_ = function() { }); }); - console.log('Skeleton debug: processed', total_polygons, 'polygons,', successful_skeletons, 'successful'); }; /**