| 184 | /* creates GregoryPatch from half edge */ |
| 185 | template<typename Allocator> |
| 186 | __noinline static Ref create(const Allocator& alloc, const HalfEdge* edge, const char* vertices, size_t stride) { |
| 187 | return Ref(GREGORY_PATCH, new (alloc(sizeof(GregoryPatch))) GregoryPatch(edge,vertices,stride)); |
| 188 | } |
| 189 | |
| 190 | __forceinline GregoryPatch (const HalfEdge* edge, const char* vertices, size_t stride) |
| 191 | : patch(CatmullClarkPatch(edge,vertices,stride)) {} |