public bool GenerateMesh(List <Vector3> points) { // Toast instruction // SSTools.ShowMessage("Place walls if needed", SSTools.Position.bottom, SSTools.Time.threeSecond); var groundPlaneTransform = wallPlacement.GetGroundPlaneTransform(); if (groundPlaneTransform != null) { delaunayMesh.Generate(points, groundPlaneTransform); } else { Debug.Log("Groundplane == null"); delaunayMesh.Generate(points, transform); } //Returns true if mesh was generated successsfully. So far we will always say true but might change in future. return(true); }
// Start is called before the first frame update void Start() { DelaunayMesh mesh = GetComponent <DelaunayMesh>(); mesh.Generate(-1); }