diff options
Diffstat (limited to 'intern/opensubdiv/internal/topology/topology_refiner_impl.h')
-rw-r--r-- | intern/opensubdiv/internal/topology/topology_refiner_impl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/intern/opensubdiv/internal/topology/topology_refiner_impl.h b/intern/opensubdiv/internal/topology/topology_refiner_impl.h index 5c7b81c2540..5232e97b24b 100644 --- a/intern/opensubdiv/internal/topology/topology_refiner_impl.h +++ b/intern/opensubdiv/internal/topology/topology_refiner_impl.h @@ -28,15 +28,22 @@ #include "internal/base/memory.h" #include "opensubdiv_topology_refiner_capi.h" +struct OpenSubdiv_Converter; + namespace blender { namespace opensubdiv { class TopologyRefinerImpl { public: + // NOTE: Will return nullptr if topology refiner can not be created (for example, when topology + // is detected to be corrupted or invalid). + static TopologyRefinerImpl *createFromConverter( + OpenSubdiv_Converter *converter, const OpenSubdiv_TopologyRefinerSettings &settings); + TopologyRefinerImpl(); ~TopologyRefinerImpl(); - OpenSubdiv::Far::TopologyRefiner *osd_topology_refiner; + OpenSubdiv::Far::TopologyRefiner *topology_refiner; // Subdivision settingsa this refiner is created for. // |