From 2cf3573b6dec2124bb0dbab9629250d047e0d77c Mon Sep 17 00:00:00 2001 From: Clifford Yapp <238416+starseeker@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:17:23 -0400 Subject: [PATCH] Manifold needs logging management too, since it also relys on NMG for individual primitive tessellation. --- src/libged/facetize/facetize.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libged/facetize/facetize.cpp b/src/libged/facetize/facetize.cpp index 3f04fdc47ea..b83f7c46031 100644 --- a/src/libged/facetize/facetize.cpp +++ b/src/libged/facetize/facetize.cpp @@ -1810,6 +1810,8 @@ _try_manifold_facetize(struct ged *gedp, int argc, const char **argv, struct _ge union tree *ftree = NULL; struct manifold_mesh *omesh = NULL; + _ged_facetize_log_nmg(o); + struct db_tree_state init_state; struct rt_wdb *wdbp = wdb_dbopen(gedp->dbip, RT_WDB_TYPE_DB_DEFAULT); db_init_db_tree_state(&init_state, gedp->dbip, wdbp->wdb_resp); @@ -1844,10 +1846,13 @@ _try_manifold_facetize(struct ged *gedp, int argc, const char **argv, struct _ge if (facetize_tree) { ftree = rt_booltree_evaluate(facetize_tree, &RTG.rtg_vlfree, &wdbp->wdb_tol, &rt_uniresource, &_manifold_do_bool, 0); - if (!ftree) + if (!ftree) { + _ged_facetize_log_default(o); return NULL; + } if (ftree->tr_d.td_d) { omesh = (struct manifold_mesh *)ftree->tr_d.td_d; + _ged_facetize_log_default(o); return omesh; } else if (ftree->tr_d.td_r) { // If we had only one NMG mesh, there was no bool @@ -1863,6 +1868,8 @@ _try_manifold_facetize(struct ged *gedp, int argc, const char **argv, struct _ge bot = NULL; } } + + _ged_facetize_log_default(o); return omesh; }