Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    public void CopyEdgeObject(int tIndex)
    {
        EdgeObjectMaker EOM = EdgeObjects[tIndex].Copy();

        EdgeObjects.Add(EOM);
        SetupEdgeObjects();
    }
Ejemplo n.º 3
0
    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();
    }
Ejemplo n.º 4
0
    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);
    }
Ejemplo n.º 5
0
    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);
        }
    }
Ejemplo n.º 6
0
    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();
        }
    }