Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 4 files). Show all
Unified · Split
| @@ -270,6 +270,23 @@ PointBufferAttribute::PointBufferAttribute() : · 269 unmodified lines | |||
| 270 | SharedPointerAttribute<PointBuffer>("pointBuffer") { | 270 | SharedPointerAttribute<PointBuffer>("pointBuffer") { |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | MetavoxelNode* PointBufferAttribute::createMetavoxelNode(const AttributeValue& value, const MetavoxelNode* original) const { | ||
| 274 | return new MetavoxelNode(value, original); | ||
| 275 | } | ||
| 276 | |||
| 277 | bool PointBufferAttribute::merge(void*& parent, void* children[], bool postRead) const { | ||
| 278 | for (int i = 0; i < MERGE_COUNT; i++) { | ||
| 279 | if (!decodeInline<PointBufferPointer>(children[i]).isNull()) { | ||
| 280 | return false; | ||
| 281 | } | ||
| 282 | } | ||
| 283 | return true; | ||
| 284 | } | ||
| 285 | |||
| 286 | AttributeValue PointBufferAttribute::inherit(const AttributeValue& parentValue) const { | ||
| 287 | return AttributeValue(parentValue.getAttribute()); | ||
| 288 | } | ||
| 289 | |||
| 273 | static void enableClipPlane(GLenum plane, float x, float y, float z, float w) { | 290 | static void enableClipPlane(GLenum plane, float x, float y, float z, float w) { |
| 274 | GLdouble coefficients[] = { x, y, z, w }; | 291 | GLdouble coefficients[] = { x, y, z, w }; |
| 275 | glClipPlane(plane, coefficients); | 292 | glClipPlane(plane, coefficients); |