@@ -3163,6 +3163,24 @@ namespace GEO {
31633163 }
31643164}
31653165
3166+ #ifdef GEO_OS_ANDROID
3167+ namespace {
3168+ android_app* android_app_ = nullptr;
3169+ }
3170+
3171+ namespace GEO {
3172+ namespace CmdLine {
3173+ void set_android_app(android_app* app) {
3174+ android_app_ = app;
3175+ }
3176+
3177+ android_app* get_android_app() {
3178+ return android_app_;
3179+ }
3180+ }
3181+ }
3182+ #endif
3183+
31663184
31673185/******* extracted from ../basic/command_line_args.cpp *******/
31683186
@@ -3768,6 +3786,7 @@ namespace {
37683786 "gfx:GLSL_tesselation", true, "use tesselation shaders if available"
37693787 );
37703788 declare_arg("gfx:geometry", "1024x1024", "resolution");
3789+ declare_arg("gfx:keypress", "", "initial key sequence sent to viewer");
37713790 }
37723791
37733792 void import_arg_group_biblio() {
@@ -3778,6 +3797,18 @@ namespace {
37783797 "dump all command line arguments in biblio. report"
37793798 );
37803799 }
3800+
3801+ void import_arg_group_gui() {
3802+ declare_arg_group("gui", "gui options", ARG_ADVANCED);
3803+ declare_arg("gui:state", "", "gui layout state");
3804+ declare_arg("gui:style", "Dark", "gui style, one of Dark,Light");
3805+ #ifdef GEO_OS_ANDROID
3806+ declare_arg("gui:font_size", 56, "font size");
3807+ #else
3808+ declare_arg("gui:font_size", 18, "font size");
3809+ #endif
3810+ declare_arg("gui:expert", false, "expert mode for developpers");
3811+ }
37813812
37823813
37833814
@@ -3894,7 +3925,9 @@ namespace GEO {
38943925 import_arg_group_poly();
38953926 } else if(name == "gfx") {
38963927 import_arg_group_gfx();
3897- } else {
3928+ } else if(name == "gui") {
3929+ import_arg_group_gui();
3930+ } else {
38983931 Logger::instance()->set_quiet(false);
38993932 Logger::err("CmdLine")
39003933 << "No such option group: " << name
@@ -24970,7 +25003,9 @@ namespace GEO {
2497025003 signed_index_t v3 = cavity_.facet_vertex(f,2);
2497125004 new_tet = new_tetrahedron(signed_index_t(v), v1, v2, v3);
2497225005 set_tet_adjacent(new_tet, 0, t_neigh);
24973- set_tet_adjacent(t_neigh, find_tet_adjacent(t_neigh,old_tet), new_tet);
25006+ set_tet_adjacent(
25007+ t_neigh, find_tet_adjacent(t_neigh,old_tet), new_tet
25008+ );
2497425009 cavity_.set_facet_tet(f, new_tet);
2497525010 }
2497625011
@@ -25727,7 +25762,9 @@ namespace GEO {
2572725762 // convention as in CGAL).
2572825763 const double* pv_bkp = pv[f];
2572925764 pv[f] = p;
25730- Sign ori = PCK::orient_3d_inexact(pv[0], pv[1], pv[2], pv[3]);
25765+ Sign ori = PCK::orient_3d_inexact(
25766+ pv[0], pv[1], pv[2], pv[3]
25767+ );
2573125768
2573225769 // If the orientation is not negative, then we cannot
2573325770 // walk towards t_next, and examine the next candidate
0 commit comments