Skip to content

Commit

Permalink
Clean up of the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
negdo committed May 20, 2023
1 parent 5950dfb commit 12763f3
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 847 deletions.
6 changes: 1 addition & 5 deletions LocalRemesherAddon/ParticleRemesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def execute(self, context):
# recalculate normals
bmesh.ops.recalc_face_normals(bm, faces=selected_faces)

# project vertices to original mesh uing interpolation
# project vertices to original mesh
vertices = [vert for vert in bm.verts if vert.select]
projection_tree = preprate_bm_for_projection(bm_proj2, subdiv=1, delete_faces=False)
for vert in vertices:
Expand All @@ -306,10 +306,6 @@ def execute(self, context):
break
face.select = selected

# look at pairs of quads and potentially change the splitting line
vertices = [vert for vert in bm.verts if vert.select and vert.is_valid]
improve_edge_flow_direction(bm, vertices, avg_direction)

# update bmesh
bm.to_mesh(me)
bm.free()
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# LocalRemesher

Blender addon for remeshing selected area with awarness of surrounding geometry.

## Installation

- Download the latest release
- Open Blender
- Go to `Edit > Preferences > Add-ons > Install...`
- Select the downloaded file
- Enable the addon

## Usage

- Select an object and enter edit mode
- Select an area you want to remesh
- Navigate to right panel in 3D view, find `Local Remesher` tab
- Click one of the buttons to remesh the selected area

## Tips

The addon is not yet perfect, so here are some tips to get better results:
- Try to select a single closed area of convex shape
- Surrounding geometry should contain good topology
- If the result is not good, try selecting a smaller or larger area
- Particle-based method is better for smaller areas
- Grid-based method is better for a little larger areas
Binary file removed bunny.blend1
Binary file not shown.
50 changes: 0 additions & 50 deletions intersecion.py

This file was deleted.

99 changes: 0 additions & 99 deletions loop testing.py

This file was deleted.

76 changes: 0 additions & 76 deletions loop.py

This file was deleted.

Loading

0 comments on commit 12763f3

Please sign in to comment.