MCPcopy Create free account
hub / github.com/RenderKit/embree / bounds

Method bounds

kernels/common/scene_curves.cpp:538–546  ·  view source on GitHub ↗

! calculates bounding box of i'th bezier curve */

Source from the content-addressed store, hash-verified

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

Callers 1

createPrimRefArrayMBMethod · 0.45

Calls 4

enlarge_boundsFunction · 0.85
accurateFlatBoundsMethod · 0.45
accurateRoundBoundsMethod · 0.45
accurateBoundsMethod · 0.45

Tested by

no test coverage detected