createCone() public static method

public static createCone ( float radius, float height, int approx ) : Mesh
radius float
height float
approx int
return UnityEngine.Mesh
        private void initDefaultValues()
        {
            TrackName        = "unnamed track";
            Description      = "";
            waypoints        = new List <Waypoint>();
            logEntries       = new List <LogEntry>();
            directionMarkers = new List <GameObject>();

            SamplingFactor              = 1;
            LineColor                   = Color.green;
            LineWidth                   = 0.2f;
            NumDirectionMarkers         = 0;
            ConeRadiusToLineWidthFactor = 30;
            ReplayColliders             = false;

            //this.renderCoords = new List<Vector3>();

            //init mesh and directionmarkes
            directionMarkerMesh = MeshFactory.createCone(1, 2, 12);

            EndAction       = EndActions.STOP;
            LoopClosureTime = 0f;

            for (int i = 0; i < 20; ++i)
            {
                GameObject marker = MeshFactory.makeMeshGameObject(ref directionMarkerMesh, "cone");
                marker.GetComponent <Renderer>().material          = new Material(Shader.Find("KSP/Emissive/Diffuse"));
                marker.GetComponent <Renderer>().shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
                marker.GetComponent <Renderer>().receiveShadows    = false;
                marker.GetComponent <Renderer>().enabled           = false;

                directionMarkers.Add(marker);
            }
        }