| 109 | /* creates BilinearPatch from a CatmullClarkPatch */ |
| 110 | template<typename Allocator> |
| 111 | __noinline static Ref create(const Allocator& alloc, const CatmullClarkPatch& patch, |
| 112 | const BezierCurve* border0, const BezierCurve* border1, const BezierCurve* border2, const BezierCurve* border3) { |
| 113 | return Ref(BILINEAR_PATCH, new (alloc(sizeof(BilinearPatch))) BilinearPatch(patch)); |
| 114 | } |
| 115 | |
| 116 | __forceinline BilinearPatch (const CatmullClarkPatch& patch) |
| 117 | : patch(patch) {} |