/// <summary> /// Will check if this bridge has anchors that were saved. basically /// see if has a saved file. otherwise just call GetBridgeAnchors() /// /// Also if has a saved file will reassign Anchors. Anchors = saved; /// </summary> /// <returns></returns> internal Vector3[] GetBridgeAnchorsCheckIfSave() { List <Vector3> saved = BuildingPot.Control.Registro.ReturnMySavedAnchors(MyId); //means has a saved value. then bz bridge gets scaled up anchors will reassign here if (saved.Count > 0) { Anchors = saved; return(Anchors.ToArray()); } //UVisHelp.CreateHelpers(copy.ToList(), Root.yellowCube); return(GetBridgeAnchors().ToArray()); }
//<summary> //I get the anchors of the 2 points and then I find the polygon of them thats the //Acnhors of a bridge //</summary> public List <Vector3> GetBridgeAnchors() { if (Anchors.Count > 0) { var aCopy = Anchors.ToArray(); return(aCopy.ToList()); } if (BoundsHoriz != null && BoundsHoriz.Count > 0) { return(Registro.FromALotOfVertexToPoly(BoundsHoriz)); } if (BoundsVertic != null && BoundsVertic.Count > 0) { return(Registro.FromALotOfVertexToPoly(BoundsVertic)); } return(null); }