private PositionIndexedTriangleBuffer InternalGetPositionIndexedTriangleBuffer(IMaterial material) { var materialKey = new MaterialKey(material); if (!_positionIndexedTriangleBuffers.TryGetValue(materialKey, out var result)) { result = new PositionIndexedTriangleBuffer(this); _positionIndexedTriangleBuffers.Add(materialKey, result); } return(result); }
private PositionIndexedTriangleBuffer InternalGetPositionIndexedTriangleBuffer(IMaterial material) { PositionIndexedTriangleBuffer result; var materialKey = new MaterialKey(material); if (!_positionIndexedTriangleBuffers.TryGetValue(materialKey, out result)) { result = new PositionIndexedTriangleBuffer(this); _positionIndexedTriangleBuffers.Add(materialKey, result); } return result; }