From 200212079dbadacbe9ddab6a2b5b5ee6824bf76c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 2 Aug 2018 12:22:55 +0200 Subject: Subsurf: Better crease which represents sharp edges Enabled infinite sharp patches for topology refiner and evaluator, which allows to have sharp edge at first subdivision level. Also tweaked crease export from Blender to OpenSubdiv to have more artistic control over the whole 0..1 range. --- intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern') diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index 31e68492587..33df7a45e39 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -713,7 +713,7 @@ OpenSubdiv_EvaluatorInternal* openSubdiv_createEvaluatorInternal( if (is_adaptive) { TopologyRefiner::AdaptiveOptions options(level); options.considerFVarChannels = has_face_varying_data; - options.useInfSharpPatch = false; + options.useInfSharpPatch = true; refiner->RefineAdaptive(options); } else { TopologyRefiner::UniformOptions options(level); @@ -763,7 +763,7 @@ vector all_face_varying_stencils; // subsurf code. PatchTableFactory::Options patch_options(level); patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS); - patch_options.useInfSharpPatch = false; + patch_options.useInfSharpPatch = true; patch_options.generateFVarTables = has_face_varying_data; patch_options.generateFVarLegacyLinearPatches = false; const PatchTable* patch_table = PatchTableFactory::Create( -- cgit v1.2.3