entier LataOptions::parse_option(const Nom & s) { if (s.debute_par("verbosity=")) { entier level = read_int_opt(s); set_Journal_level(level); } else if (s.debute_par("regularize=")) { regularize = true; regularize_tolerance = read_float_opt(s); } else if (s.debute_par("regularize_polyedre=")) { regularize_polyedre = read_int_opt(s); } else if (s.debute_par("extend_domain=")) { extend_domain = read_int_opt(s); } else if (s == "invalidate") { invalidate = true; } else if (s.debute_par("reconnect=")) { reconnect = true; reconnect_tolerance = read_float_opt(s); } else if (s.debute_par("reconnect_tolerance=")) { reconnect_tolerance = read_float_opt(s); } else if (s == "dualmesh") { dual_mesh = true; } else if (s == "nodualmesh") { dual_mesh = false; } else if (s == "ncmesh") { nc_mesh = true; } else if (s == "facesmesh") { faces_mesh = true; } else if (s == "nofacesmesh") { faces_mesh = false; } else if (s == "boundarymesh") { boundary_mesh = true; } else if (s.debute_par("clipbox=")) { Noms list = extract_list(((const char*)s)+8); if (list.size() != 6) { Journal() << "Error : clipbox parameters expects 6 values" << endl; throw; } for (entier i = 0; i < 3; i++) { clipbox_min[i] = read_float_opt(list[i]); clipbox_max[i] = read_float_opt(list[i+3]); } } else if (s == "load_virtual_elements") { load_virtual_elements = true; } else if (s == "user_fields") { user_fields_ = true; Journal() << "Option: User_fields ON" << endl; } else if (s.debute_par("ijk_mesh_nb_parts")) { ijk_mesh_nb_parts_ = read_int_opt(s); } else if (s == "export_fields_at_faces") { export_fields_at_faces_ = 1; } else if (s.debute_par("ijk_virt_layer=")) { ijk_virt_layer = read_int_opt(s); } else return user_fields_options_.parse_option(s);; return 1; }
int extract_simplex(simplex_index **s, simplex_list *sl) { return extract_list(sl, s); }
int extract_face(face **f, face_list *AFL) { return extract_list(AFL, f); }