IncludeAfterMobius() public method

ZZZ - needs to be part of performance setting? Returns true if the tile should be included after a Mobius transformation will be applied. If the tile is not be included, this method avoids applying the mobious transform to the entire tile.
public IncludeAfterMobius ( Mobius m ) : bool
m R3.Math.Mobius
return bool
示例#1
0
        /// <summary>
        /// Will clone the tile, transform it and add it to our tiling.
        /// </summary>
        private bool TransformAndAdd(Tile tile)
        {
            // Will we want to include it?
            if (!tile.IncludeAfterMobius(this.TilingConfig.M))
            {
                return(false);
            }

            Tile clone = tile.Clone();

            clone.Transform(this.TilingConfig.M);
            m_tiles.Add(clone);
            this.TilePositions[clone.Boundary.Center] = clone;
            return(true);
        }
示例#2
0
        /// <summary>
        /// Will clone the tile, transform it and add it to our tiling.
        /// </summary>
        private bool TransformAndAdd( Tile tile )
        {
            // Will we want to include it?
            if( !tile.IncludeAfterMobius( this.TilingConfig.M ) )
                return false;

            Tile clone = tile.Clone();
            clone.Transform( this.TilingConfig.M );
            m_tiles.Add( clone );
            this.TilePositions[clone.Boundary.Center] = clone;
            return true;
        }