Пример #1
0
        private GeoModel appendModel(float x, float y, float z, bool is_large)
        {
            float size_xz = (is_large ? 8f * GeoScene.BLOCK_SIZE : GeoScene.BLOCK_SIZE);
            //
            GeoModel i = new GeoModel();

            i.IsLarge    = is_large;
            i.Position.X = x;
            i.Position.Y = y;
            i.Position.Z = z;
            i.SetBounds(size_xz, GeoScene.BLOCK_SIZE, size_xz);
            i.UpdateWorld();
            models.Add(i);
            //
            vis_tree.InsertTree(i);
            return(i);
        }