diff options
Diffstat (limited to 'source/blender/blenkernel/intern/subsurf.c')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/blenkernel/intern/subsurf.c b/source/blender/blenkernel/intern/subsurf.c index 60011c084b0..7359555da45 100644 --- a/source/blender/blenkernel/intern/subsurf.c +++ b/source/blender/blenkernel/intern/subsurf.c @@ -1082,37 +1082,6 @@ static DispListMesh *subsurf_subdivide_to_displistmesh(HyperMesh *hme, short sub return dlm; } -DerivedMesh *subsurf_make_derived_from_editmesh(EditMesh *em, int subdivLevels, short type, DerivedMesh *oldDerived) { - if (subdivLevels<1) { - if (oldDerived) { - oldDerived->release(oldDerived); - } - return derivedmesh_from_displistmesh(em, displistmesh_from_editmesh(em)); - } else if (type==ME_CCG_SUBSURF || type==ME_SIMPLE_SUBSURF) { - return subsurf_ccg_make_derived_from_editmesh(em, type==ME_SIMPLE_SUBSURF, subdivLevels, oldDerived); - } else { - HyperMesh *hme= hypermesh_from_editmesh(em, subdivLevels); - - if (oldDerived) { - oldDerived->release(oldDerived); - } - - return derivedmesh_from_displistmesh(em, subsurf_subdivide_to_displistmesh(hme, subdivLevels, type)); - } -} - -DerivedMesh *subsurf_make_derived_from_mesh(Mesh *me, int subdivLevels) { - if (subdivLevels<1) { - return derivedmesh_from_displistmesh(NULL, displistmesh_from_mesh(me, NULL)); - } else if (me->subsurftype==ME_CCG_SUBSURF || me->subsurftype==ME_SIMPLE_SUBSURF) { - return subsurf_ccg_make_derived_from_mesh(me, me->subsurftype==ME_SIMPLE_SUBSURF, subdivLevels); - } else { - HyperMesh *hme= hypermesh_from_mesh(me, subdivLevels); - - return derivedmesh_from_displistmesh(NULL, subsurf_subdivide_to_displistmesh(hme, subdivLevels, me->subsurftype)); - } -} - // editarmature.c void subsurf_calculate_limit_positions(Mesh *me, float (*positions_r)[3]) { |