public void Add(Geom geom)
        {
            Wrapper wrapper = new Wrapper(geom);

            _wrappers.Add(wrapper);
            wrapper.AddStubs(_xStubs, _yStubs);
        }
        protected internal override void AddBodyRange(List <Body> collection)
        {
            int wrappercount = collection.Count + wrappers.Count;

            if (wrappers.Capacity < wrappercount)
            {
                wrappers.Capacity = wrappercount;
            }
            int nodeCount = collection.Count * 2 + xStubs.Count;

            if (xStubs.Capacity < nodeCount)
            {
                xStubs.Capacity = nodeCount;
                yStubs.Capacity = nodeCount;
            }
            foreach (Body item in collection)
            {
                Wrapper wrapper = new Wrapper(item);
                wrappers.Add(wrapper);
                wrapper.AddStubs(xStubs, yStubs);
            }
        }
 protected internal override void AddBodyRange(List<Body> collection)
 {
     int wrappercount = collection.Count + wrappers.Count;
     if (wrappers.Capacity < wrappercount)
     {
         wrappers.Capacity = wrappercount;
     }
     int nodeCount = collection.Count * 2 + xStubs.Count;
     if (xStubs.Capacity < nodeCount)
     {
         xStubs.Capacity = nodeCount;
         yStubs.Capacity = nodeCount;
     }
     foreach (Body item in collection)
     {
         Wrapper wrapper = new Wrapper(item);
         wrappers.Add(wrapper);
         wrapper.AddStubs(xStubs, yStubs);
     }
 }