Example #1
0
        /// <summary>
        ///
        /// </summary>
        void Start()
        {
            _graph = _tileGraph.Graph;
            _verts = _tileGraph.VertexObjects;

            _map   = _tileSet.CreateMap();
            _model = TileModel.CreateFromGraph(_map, _graph, _seed);

            _model.AssignedCallback = OnAssigned;
            _model.ReducedCallback  = OnReduced;

            _status = CollapseStatus.Incomplete;

            AssignBoundary();


            int vertex = 5;

            int tileIndex = _model.GetAssignedTile(vertex);
            var tile      = _tileSet[tileIndex];

            // if(tile.Labels[0] == "1")
            // create a fixed join between vertex onbjecgs


            //_tileSet[]
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        void Start()
        {
            _graph = _tileGraph.Graph;
            _verts = _tileGraph.VertexObjects;

            _map   = _tileSet.CreateMap();
            _model = TileModel.CreateFromGraph(_map, _graph, _seed);

            _model.AssignedCallback = OnAssigned;
            _model.ReducedCallback  = OnReduced;

            _status = CollapseStatus.Incomplete;

            AssignBoundary();
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public TileMap CreateMap()
 {
     return(_tileSet.CreateMap());
 }