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