(model, count = 1)
| 548 | } |
| 549 | |
| 550 | model(model, count = 1) { |
| 551 | if (model.vertices.length > 0) { |
| 552 | if (this.geometryBuilder) { |
| 553 | this.geometryBuilder.addRetained(model); |
| 554 | } else { |
| 555 | if (!this.geometryInHash(model.gid)) { |
| 556 | model._edgesToVertices(); |
| 557 | this._getOrMakeCachedBuffers(model); |
| 558 | } |
| 559 | |
| 560 | this._drawGeometry(model, { count }); |
| 561 | } |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | _getOrMakeCachedBuffers(geometry) { |
| 566 | return this.geometryBufferCache.ensureCached(geometry); |
no test coverage detected