diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-25 17:51:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-31 10:24:30 +0300 |
commit | 51c38b5d495e406a0c13216470927c5ce0f71e4f (patch) | |
tree | d76b16650bb935697e7e0393f1d734ddab11d92d /source/blender/blenkernel/intern/subdiv_stats.c | |
parent | 5300ba0ba50efb1656a2effa1053fb60875398ef (diff) |
Subsurf: Rework in a way that patches boundaries are merged together
The idea is to create vertices along the coarse edges once, without
splitting coarse edges on separate ptex faces. This requires some
indexing magic, vertices within a patch are no longer sequential.
Not sure how to make it nicer without such a black magic looking
calculations (which are basically boiling down to mimicking order
of verts/edges creation).
In the current offsets calculation loose verts and edges are not
properly taken into account, but those are causing topology refiner
to fail anyway, so it needs a bit deeper change.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3570
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_stats.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_stats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_stats.c b/source/blender/blenkernel/intern/subdiv_stats.c index 5da63fdbacb..f2219961ab7 100644 --- a/source/blender/blenkernel/intern/subdiv_stats.c +++ b/source/blender/blenkernel/intern/subdiv_stats.c @@ -37,6 +37,7 @@ void BKE_subdiv_stats_init(SubdivStats *stats) { stats->topology_refiner_creation_time = 0.0; stats->subdiv_to_mesh_time = 0.0; + stats->subdiv_to_mesh_geometry_time = 0.0; stats->evaluator_creation_time = 0.0; stats->evaluator_refine_time = 0.0; } @@ -70,6 +71,9 @@ void BKE_subdiv_stats_print(const SubdivStats *stats) subdiv_to_mesh_time, "Subdivision to mesh time"); STATS_PRINT_TIME(stats, + subdiv_to_mesh_geometry_time, + " Geometry time"); + STATS_PRINT_TIME(stats, evaluator_creation_time, "Evaluator creation time"); STATS_PRINT_TIME(stats, |