示例#1
0
                /// <summary>
                /// Add a geometrical point in the built-in CAD representation, at coordinates
                /// (`x', `y', `z'). If `meshSize' is > 0, add a meshing constraint at that
                /// point. If `tag' is positive, set the tag explicitly; otherwise a new tag
                /// is selected automatically. Return the tag of the point. (Note that the
                /// point will be added in the current model only after `synchronize' is
                /// called. This behavior holds for all the entities added in the geo module.)
                /// </summary>
                public static int AddPoint(double x, double y, double z, double meshsize = 0, int tag = -1)
                {
                    var index = Gmsh_Warp.GmshModelGeoAddPoint(x, y, z, meshsize, tag, ref Gmsh._staticreff);

                    Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle);
                    return(index);
                }