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