Ejemplo n.º 1
0
        private PositionNormalColorIndexedTriangleBuffer InternalGetPositionNormalColorIndexedTriangleBuffer(IMaterial material)
        {
            var key = new MaterialPlusClippingKey(material, null);

            if (!_positionNormalColorIndexedTriangleBuffers.TryGetValue(key, out var result))
            {
                result = new PositionNormalColorIndexedTriangleBuffer(this);
                _positionNormalColorIndexedTriangleBuffers.Add(key, result);
            }

            return(result);
        }
Ejemplo n.º 2
0
		private PositionNormalColorIndexedTriangleBuffer InternalGetPositionNormalColorIndexedTriangleBuffer(IMaterial material)
		{
			PositionNormalColorIndexedTriangleBuffer result;
			var key = new MaterialPlusClippingKey(material, null);
			if (!_positionNormalColorIndexedTriangleBuffers.TryGetValue(key, out result))
			{
				result = new PositionNormalColorIndexedTriangleBuffer(this);
				_positionNormalColorIndexedTriangleBuffers.Add(key, result);
			}

			return result;
		}