Skip to content

Commit

Permalink
Move GEO::initialize to group with the rest of the geogram logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Jan 26, 2024
1 parent 74cb50f commit c1b6625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libged/bot/manifold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ geogram_mesh_repair(struct rt_bot_internal *bot)
if (!bot)
return NULL;

// Make sure geogram is initialized
GEO::initialize();

// Use the default hole filling algorithm
GEO::CmdLine::set_arg("algo:hole_filling", "loop_split");
GEO::CmdLine::set_arg("algo:nn_search", "BNN");
Expand Down Expand Up @@ -267,9 +270,6 @@ _bot_cmd_manifold(void *bs, int argc, const char **argv)
return BRLCAD_OK;
}

// Make sure geogram is initialized
GEO::initialize();

struct _ged_bot_info *gb = (struct _ged_bot_info *)bs;

argc--; argv++;
Expand Down

0 comments on commit c1b6625

Please sign in to comment.