/// <summary> /// Add a cylinder, defined by the center (`x', `y', `z') of its first /// circular face, the 3 components (`dx', `dy', `dz') of the vector defining /// its axis and its radius `r'. The optional `angle' argument defines the /// angular opening (from 0 to 2*Pi). If `tag' is positive, set the tag /// explicitly; otherwise a new tag is selected automatically. Return the tag /// of the cylinder. /// </summary> public int AddCylinder(double x, double y, double z, double dx, double dy, double dz, double r, int tag = -1, double angle = 2 *Math.PI) { var api = GMshNativeMethods.gmshModelOccAddCylinder(x, y, z, dx, dy, dz, r, tag, angle, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }