| 135 | } |
| 136 | |
| 137 | void TriangleMesh::commit() |
| 138 | { |
| 139 | /* verify that stride of all time steps are identical */ |
| 140 | for (unsigned int t=0; t<numTimeSteps; t++) { |
| 141 | if (vertices[t].getStride() != vertices[0].getStride()) |
| 142 | throw_RTCError(RTC_ERROR_INVALID_OPERATION,"stride of vertex buffers have to be identical for each time step"); |
| 143 | if (vertices[t]) vertices[t].buffer->commitIfNeeded(); |
| 144 | } |
| 145 | if (triangles) triangles.buffer->commitIfNeeded(); |
| 146 | Geometry::commit(); |
| 147 | } |
| 148 | |
| 149 | void TriangleMesh::addElementsToCount (GeometryCounts & counts) const |
| 150 | { |
nothing calls this directly
no test coverage detected