private void InitObjs() { string[] tNames = null; string[] tPaths = null; //Load user custom ones first: if (tWindowType == WindowTypeEnum.Extrusion) { SplinatedMeshMaker.GetLibraryFiles(out tNames, out tPaths, false); } else { EdgeObjectMaker.GetLibraryFiles(out tNames, out tPaths, false); } LoadObjs(ref tNames, ref tPaths, false); //Load GSD ones last: if (tWindowType == WindowTypeEnum.Extrusion) { SplinatedMeshMaker.GetLibraryFiles(out tNames, out tPaths, true); } else { EdgeObjectMaker.GetLibraryFiles(out tNames, out tPaths, true); } LoadObjs(ref tNames, ref tPaths, true); }
public void CopyEdgeObject(int tIndex) { EdgeObjectMaker EOM = EdgeObjects[tIndex].Copy(); EdgeObjects.Add(EOM); SetupEdgeObjects(); }
public void EdgeObjectQuickAdd(string tName) { EdgeObjectMaker EOM = AddEdgeObject(); EOM.LoadFromLibrary(tName, true); EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance); EOM.tNode = this; EOM.Setup(); }
public EdgeObjectMaker AddEdgeObject() { EdgeObjectMaker EOM = new EdgeObjectMaker(); EOM.tNode = this; EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance); EOM.StartPos = GSDSpline.GetSplineValue(EOM.StartTime); EOM.EndPos = GSDSpline.GetSplineValue(EOM.EndTime); EdgeObjects.Add(EOM); return(EOM); }
public void SetupEdgeObjects(bool bCollect = true) { if (EdgeObjects == null) { EdgeObjects = new List <EdgeObjectMaker>(); } int eCount = EdgeObjects.Count; EdgeObjectMaker EOM = null; for (int i = 0; i < eCount; i++) { EOM = EdgeObjects[i]; EOM.tNode = this; EOM.Setup(bCollect); } }
public void EdgeObjectLoadFromLibrary(int i, string tName) { if (EdgeObjects == null) { EdgeObjects = new List <EdgeObjectMaker>(); } int eCount = EdgeObjects.Count; if (i > -1 && i < eCount) { EdgeObjectMaker EOM = EdgeObjects[i]; EOM.LoadFromLibrary(tName); EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance); EOM.tNode = this; EOM.Setup(); } }