1 // Gmsh - Copyright (C) 1997-2021 C. Geuzaine, J.-F. Remacle 2 // 3 // See the LICENSE.txt file in the Gmsh root directory for license information. 4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues. 5 6 #ifndef SCRIPT_STRING_INTERFACE_H 7 #define SCRIPT_STRING_INTERFACE_H 8 9 #include <string> 10 #include <vector> 11 #include "ListUtils.h" 12 13 void scriptRemoveLastCommand(const std::string &fileName); 14 15 void scriptSetFactory(const std::string &factory, const std::string &fileName); 16 void scriptSetMeshSize(const std::string &fileName, const std::vector<int> &l, 17 const std::string &lc); 18 void scriptRecombineSurface(const std::string &fileName, 19 const std::vector<int> &l); 20 void scriptSetTransfiniteLine(std::vector<int> &l, const std::string &fileName, 21 const std::string &type, 22 const std::string &typearg, 23 const std::string &pts); 24 void scriptSetTransfiniteSurface(std::vector<int> &l, 25 const std::string &fileName, 26 const std::string &dir); 27 void scriptSetTransfiniteVolume(std::vector<int> &l, 28 const std::string &fileName); 29 void scriptEmbed(const std::string &fileName, const std::string &what, 30 std::vector<int> &l, int dim, int tag); 31 void scriptAddParameter(const std::string &par, const std::string &value, 32 const std::string &label, const std::string &path, 33 const std::string &fileName); 34 void scriptAddPoint(const std::string &fileName, const std::string &x, 35 const std::string &y, const std::string &z, 36 const std::string &lc); 37 void scriptAddCurve(const std::string &type, std::vector<int> &p, 38 const std::string &fileName); 39 void scriptAddCircleArc(int p1, int p2, int p3, const std::string &fileName); 40 void scriptAddEllipseArc(int p1, int p2, int p3, int p4, 41 const std::string &fileName); 42 void scriptAddFieldOption(int field_id, const std::string &option_name, 43 const std::string &option_value, int option_type, 44 const std::string &fileName); 45 void scriptAddField(int field_id, const std::string &type_name, 46 const std::string &fileName); 47 void scriptDeleteField(int field_id, const std::string &fileName); 48 void scriptSetBackgroundField(int field_id, const std::string &fileName); 49 void scriptAddCurveLoop(List_T *list, const std::string &fileName, 50 int *numloop); 51 void scriptAddSurface(const std::string &type, List_T *list, 52 const std::string &fileName); 53 void scriptAddSurfaceLoop(List_T *list, const std::string &fileName, 54 int *numvol); 55 void scriptAddVolume(List_T *list, const std::string &fileName); 56 void scriptAddRemovePhysicalGroup(const std::string &fileName, 57 const std::string &what, 58 const std::vector<int> &l, 59 const std::string &name, int forceTag, 60 bool append, const std::string &mode); 61 void scriptSetCompound(const std::string &fileName, const std::string &type, 62 const std::vector<int> &l); 63 void scriptAddCircle(const std::string &fileName, const std::string &x, 64 const std::string &y, const std::string &z, 65 const std::string &r, const std::string &alpha1, 66 const std::string &alpha2); 67 void scriptAddEllipse(const std::string &fileName, const std::string &x, 68 const std::string &y, const std::string &z, 69 const std::string &rx, const std::string &ry, 70 const std::string &alpha1, const std::string &alpha2); 71 void scriptAddDisk(const std::string &fileName, const std::string &x, 72 const std::string &y, const std::string &z, 73 const std::string &rx, const std::string &ry); 74 void scriptAddRectangle(const std::string &fileName, const std::string &x, 75 const std::string &y, const std::string &z, 76 const std::string &dx, const std::string &dy, 77 const std::string &roundedRadius); 78 void scriptAddSphere(const std::string &fileName, const std::string &x, 79 const std::string &y, const std::string &z, 80 const std::string &r, const std::string &alpha1, 81 const std::string &alpha2, const std::string &alpha3); 82 void scriptAddCylinder(const std::string &fileName, const std::string &x, 83 const std::string &y, const std::string &z, 84 const std::string &dx, const std::string &dy, 85 const std::string &dz, const std::string &r, 86 const std::string &alpha); 87 void scriptAddBox(const std::string &fileName, const std::string &x, 88 const std::string &y, const std::string &z, 89 const std::string &dx, const std::string &dy, 90 const std::string &dz); 91 void scriptAddTorus(const std::string &fileName, const std::string &x, 92 const std::string &y, const std::string &z, 93 const std::string &r1, const std::string &r2, 94 const std::string &alpha); 95 void scriptAddCone(const std::string &fileName, const std::string &x, 96 const std::string &y, const std::string &z, 97 const std::string &dx, const std::string &dy, 98 const std::string &dz, const std::string &r1, 99 const std::string &r2, const std::string &alpha); 100 void scriptAddWedge(const std::string &fileName, const std::string &x, 101 const std::string &y, const std::string &z, 102 const std::string &dx, const std::string &dy, 103 const std::string &dz, const std::string <x); 104 void scriptTranslate(const std::string &fileName, 105 const std::vector<std::pair<int, int> > &l, 106 const std::string &tx, const std::string &ty, 107 const std::string &tz, bool duplicata); 108 void scriptRotate(const std::string &fileName, 109 const std::vector<std::pair<int, int> > &l, 110 const std::string &ax, const std::string &ay, 111 const std::string &az, const std::string &px, 112 const std::string &py, const std::string &pz, 113 const std::string &angle, bool duplicata); 114 void scriptDilate(const std::string &fileName, 115 const std::vector<std::pair<int, int> > &l, 116 const std::string &cx, const std::string &cy, 117 const std::string &cz, const std::string &sx, 118 const std::string &sy, const std::string &sz, bool duplicata); 119 void scriptMirror(const std::string &fileName, 120 const std::vector<std::pair<int, int> > &l, 121 const std::string &sa, const std::string &sb, 122 const std::string &sc, const std::string &sd, bool duplicata); 123 void scriptExtrude(const std::string &fileName, 124 const std::vector<std::pair<int, int> > &l, 125 const std::string &tx, const std::string &ty, 126 const std::string &tz, bool extrudeMesh, 127 const std::string &layers, bool recombineMesh); 128 void scriptProtude(const std::string &fileName, 129 const std::vector<std::pair<int, int> > &l, 130 const std::string &ax, const std::string &ay, 131 const std::string &az, const std::string &px, 132 const std::string &py, const std::string &pz, 133 const std::string &angle, bool extrudeMesh, 134 const std::string &layers, bool recombineMesh); 135 void scriptAddPipe(const std::string &fileName, 136 const std::vector<std::pair<int, int> > &l, 137 const std::vector<int> &l2); 138 void scriptSplitCurve(int edge_id, List_T *vertices, 139 const std::string &fileName); 140 void scriptBoolean(const std::string &fileName, const std::string &op, 141 const std::vector<std::pair<int, int> > &object, 142 const std::vector<std::pair<int, int> > &tool, 143 int deleteObject, int deleteTool); 144 void scriptFillet(const std::string &fileName, const std::vector<int> ®ions, 145 const std::vector<int> &edges, const std::string &radius); 146 void scriptCoherence(const std::string &fileName); 147 void scriptDeleteEntities(const std::string &fileName, 148 const std::vector<std::pair<int, int> > &l, 149 bool recursive); 150 void scriptSetVisibilityAll(int mode, const std::string &fileName); 151 void scriptSetVisibility(int mode, const std::vector<std::pair<int, int> > &l, 152 const std::string &fileName); 153 154 #endif 155