! calculates bounding box of i'th bezier curve */
| 536 | |
| 537 | /*! calculates bounding box of i'th bezier curve */ |
| 538 | __forceinline BBox3fa bounds(size_t i, size_t itime = 0) const |
| 539 | { |
| 540 | switch (ctype) { |
| 541 | case Geometry::GTY_SUBTYPE_FLAT_CURVE: return enlarge_bounds(getCurveScaledRadius(i,itime).accurateFlatBounds(tessellationRate)); |
| 542 | case Geometry::GTY_SUBTYPE_ROUND_CURVE: return enlarge_bounds(getCurveScaledRadius(i,itime).accurateRoundBounds()); |
| 543 | case Geometry::GTY_SUBTYPE_ORIENTED_CURVE: return enlarge_bounds(getOrientedCurveScaledRadius(i,itime).accurateBounds()); |
| 544 | default: return empty; |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | /*! calculates bounding box of i'th bezier curve */ |
| 549 | __forceinline BBox3fa bounds(const LinearSpace3fa& space, size_t i, size_t itime = 0) const |
no test coverage detected