0
$\begingroup$

this is a one shell mesh that is not water-tight, in edit mode.

Mesh to edit

The selection was performed as it follows: Select All; Select Boundary Loop; Select More (3 times); Select Less (3 times).

The objetive is to delete the vertices inside the red loop so that the border of the mesh is smoother. Any idea how to do it?

$\endgroup$
1
  • $\begingroup$ Welcome to bse. Watertight? Consider looking at the bmesh module For mesh above I would search for boundary vertices that are only used in one triangle face and remove them.. $\endgroup$
    – batFINGER
    Jun 24, 2018 at 2:43

1 Answer 1

1
$\begingroup$

Deleting faces works just fine

Script here:

import bpy

bpy.ops.object.mode_set(mode='EDIT')

bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.mesh.region_to_loop()
bpy.ops.mesh.select_more()
bpy.ops.mesh.select_more()
bpy.ops.mesh.select_more()
bpy.ops.mesh.select_less()
bpy.ops.mesh.select_less()
bpy.ops.mesh.select_less()
bpy.ops.mesh.delete(type='FACE')

bpy.ops.object.mode_set(mode='OBJECT')
$\endgroup$
2
  • $\begingroup$ Does deleting only the faces leave unwanted edges and verts? $\endgroup$
    – batFINGER
    Jun 24, 2018 at 2:45
  • $\begingroup$ everything conected to the unwanted verts is removed $\endgroup$ Jun 25, 2018 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.