293 // |
294 // |
294 // The bounding box is the box that encompasses a given set of objects. |
295 // The bounding box is the box that encompasses a given set of objects. |
295 // v0 is the minimum vertex, v1 is the maximum vertex. |
296 // v0 is the minimum vertex, v1 is the maximum vertex. |
296 // ============================================================================= |
297 // ============================================================================= |
297 class LDBoundingBox |
298 class LDBoundingBox |
298 { READ_PROPERTY (bool, empty, setEmpty) |
299 { PROPERTY (private, bool, Empty, BOOL_OPS, NO_CB) |
299 READ_PROPERTY (vertex, v0, setV0) |
300 PROPERTY (private, vertex, Vertex0, NO_OPS, NO_CB) |
300 READ_PROPERTY (vertex, v1, setV1) |
301 PROPERTY (private, vertex, Vertex1, NO_OPS, NO_CB) |
301 |
302 |
302 public: |
303 public: |
303 LDBoundingBox(); |
304 LDBoundingBox(); |
304 void reset(); |
305 void reset(); |
305 void calculate(); |
306 void calculate(); |