diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-03-02 17:10:26 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-03-02 17:19:55 +0300 |
commit | 6883c47bb5930be5a95d1c2e8e06fce2d3b68681 (patch) | |
tree | 9c5fc32c03e6994a33827f2e7eaaa6d857f5554d /source/blender/windowmanager | |
parent | 4a95c3466fafcd3e9116cd0d7fdcc63f2dc38bd2 (diff) |
Fix T94729: GPU subdivision does not support meshes without polygons
There are two issues revealed in the bug report:
- the GPU subdivision does not support meshes with only loose geometry
- the loose geometry is not subdivided
For the first case, checks are added to ensure we still fill the
buffers with loose geometry even if no polygons are present.
For the second case, this adds
`BKE_subdiv_mesh_interpolate_position_on_edge` which encapsulates the
loose vertex interpolation mechanism previously found in
`subdiv_mesh_vertex_of_loose_edge`.
The subdivided loose geometry is stored in a new specific data structure
`DRWSubdivLooseGeom` so as to not pollute `MeshExtractLooseGeom`. These
structures store the corresponding coarse element data, which will be
used for filling GPU buffers appropriately.
Differential Revision: https://developer.blender.org/D14171
Diffstat (limited to 'source/blender/windowmanager')
0 files changed, 0 insertions, 0 deletions