26inline int addDiskOcc(
double xc,
double yc,
double zc,
double rx,
double ry,
28#if (GMSH_API_VERSION_MAJOR > 4) || \
29 (GMSH_API_VERSION_MAJOR == 4 && GMSH_API_VERSION_MINOR >= 11)
30 const std::vector<double> zAxis = {0., 0., 1.};
31 const std::vector<double> xAxis = {std::cos(theta), std::sin(theta), 0.};
32 return gmsh::model::occ::addDisk(xc, yc, zc, rx, ry, -1, zAxis, xAxis);
34 const int tag = gmsh::model::occ::addDisk(xc, yc, zc, rx, ry, -1);
35 if (std::abs(theta) > 1.0e-15)
36 gmsh::model::occ::rotate({{2, tag}}, xc, yc, zc, 0., 0., 1., theta);
int addDiskOcc(double xc, double yc, double zc, double rx, double ry, double theta=0.)
OCC disk compatible with older Gmsh (no zAxis/xAxis) and newer APIs.