We don't allow implicit conversion from a BOX2D to BOX3D. Use the explicit BOX3D ctor that takes a BOX2D if that's what you want.
| 165 | // We don't allow implicit conversion from a BOX2D to BOX3D. Use the explicit |
| 166 | // BOX3D ctor that takes a BOX2D if that's what you want. |
| 167 | BOX3D Bounds::to3d() const |
| 168 | { |
| 169 | if (!is3d()) |
| 170 | return BOX3D(); |
| 171 | return m_box; |
| 172 | } |
| 173 | |
| 174 | BOX2D Bounds::to2d() const |
| 175 | { |