Beispiel #1
0
        protected void AddCurve(int sections)
        {
            if (sections > 1)
            {
                if (rawCurves.Data[rawCurves.Count] == null)
                {
                    rawCurves.Data[rawCurves.Count] = new ObiList <CurveSection>();
                    curves.Data[curves.Count]       = new ObiList <CurveSection>();
                }

                rawCurves.Data[rawCurves.Count].SetCount(sections);

                rawCurves.SetCount(rawCurves.Count + 1);
                curves.SetCount(curves.Count + 1);
            }
        }
        private void AllocateChunk(int sections)
        {
            if (sections > 1)
            {
                if (rawChunks.Data[rawChunks.Count] == null)
                {
                    rawChunks.Data[rawChunks.Count]       = new ObiList <ObiPathFrame>();
                    smoothChunks.Data[smoothChunks.Count] = new ObiList <ObiPathFrame>();
                }

                rawChunks.Data[rawChunks.Count].SetCount(sections);

                rawChunks.SetCount(rawChunks.Count + 1);
                smoothChunks.SetCount(smoothChunks.Count + 1);
            }
        }