3d_modeling:blender:clean_up_occipital_3d_scan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
3d_modeling:blender:clean_up_occipital_3d_scan [2020/04/06 08:12] – [Big Holes] formlab3d_modeling:blender:clean_up_occipital_3d_scan [2021/10/13 03:07] (current) – [Auto-fix holes] formlab
Line 1: Line 1:
 ====== Clean up a 3D scan made with the Occipital Structure scanner ====== ====== Clean up a 3D scan made with the Occipital Structure scanner ======
-The 3D files from the Structure scanner often have holes and unwanted geometry. After following this guide you'll get a watertight model that is ready for color-3D printing. A basic understanding of mesh manipulation in Blender is necessary. 
-We will use Blender, but here is a [[3d_modeling:meshmixer:clean_up_3d_scan|guide]] that describes this process for Meshmixer. 
  
 +The 3D files from the Structure scanner often have holes and unwanted geometry. After following this guide you'll get a watertight model that is ready for (colour) 3D printing. A basic understanding of mesh manipulation in Blender is necessary.
 +This guide uses Blender, but here is a [[3d_modeling:meshmixer:clean_up_3d_scan|guide]] that describes this process for Meshmixer.
  
-===== Setup the mesh ===== +===== Basic cleanup =====  
-  Import the mesh.+==== Open the file ==== 
 +The structure scanner delivers the 3D object in 3 parts: 
 +  * ''Model.obj'' is the 3D object 
 +  * ''Model.jpg'' is the texture file 
 +  * ''Model.mtl'' is a file that links the object to the texture. 
 +{{:structure_3d_scanner:cleanup_files.jpg?nolink|}} 
 + 
 +You only have to open the ''.obj'' file. The program will find the other files on its own: 
 +  * ''File > Import > Wavefront (obj)''. Choose the ''.obj'' file 
 + 
 +==== Setup the mesh ====
   - Make the mesh active (yellow contour lines instead of orange) ''left mouse click''   - Make the mesh active (yellow contour lines instead of orange) ''left mouse click''
   - Right click on the mesh and select ''Set Origin > Geometry to origin''.   - Right click on the mesh and select ''Set Origin > Geometry to origin''.
Line 12: Line 22:
  
 {{:3d_modeling:blender:01_montage_-_arrows.jpg|}} {{:3d_modeling:blender:01_montage_-_arrows.jpg|}}
-===== Join fragments to a single mesh ===== +==== Join fragments to a single mesh ==== 
-The scan data coming from the Occipital Structure sensor isn't yet joined in a single mesh. It consists of multiple sections that overlap on the edges. To test this, hover the cursor over the object and press ''l'' (lower caps L). This selects all vertices that are linked. As you can see, only a single section is selected.+The scan data coming from the Occipital Structure sensor isn't yet joined in a single mesh. It consists of multiple sections that overlap on the edges. To test this, hover the cursor over the object and go to ''Select > Select Linked > Linked'' (Shortcut: ''l''(lower caps L). This selects all vertices that are linked. As you can see, only a single section is selected.
  
-  - Select all ''a''+  - Select all: ''Select > All'' (shortcut: ''a'').
   - ''Mesh > Clean Up > Merge by Distance''. The default distance should do.   - ''Mesh > Clean Up > Merge by Distance''. The default distance should do.
   - Reset normal vectors: ''Mesh > Normals > Reset Vectors''   - Reset normal vectors: ''Mesh > Normals > Reset Vectors''
 {{:3d_modeling:blender:02_setup_mesh_-_collage_-_arrows.jpg|}} {{:3d_modeling:blender:02_setup_mesh_-_collage_-_arrows.jpg|}}
  
 +==== Auto-fix holes ====
  
-===== Delete unwanted geometry =====+  * To see if there are any holes in the mesh, go in Edit mode and go to ''Select > Select All by Trait > Non manifold''. This will select all vertexes on the edges of holes: \\ {{:3d_modeling:blender:remesh_non_manifold_edges.png?400|}} 
 +  * {{:3d_modeling:blender:remesh_settings.png?400|}}\\ Apply a remesh modifier to the object and tune the parameters until the object is defined properly:\\ {{:3d_modeling:blender:remesh_remeshed.png?400|}} 
 +  * Try selecting the non-manifold vertexes again. If there are still some selected, repeat the above process, or export the object to Meshmixer to remesh it there. 
 + 
 +The 3D print add-on for Blender is helpful in preparing your object for 3D printing: enable the add-on ''3D-Print Toolbox'' in the Blender preferences. 
 +==== Delete unwanted geometry ====
 Cut away unwanted parts, like the surface the model was standing on. Cut away unwanted parts, like the surface the model was standing on.
   - Add a cube. Scale and position so it overlaps with the unwanted geometry.   - Add a cube. Scale and position so it overlaps with the unwanted geometry.
   - Select the 3D scan mesh.   - Select the 3D scan mesh.
-  - Add Boolean modifier and leave the operation as '' Difference ''.+  - Add Boolean modifier and leave the operation as Difference.
   - Select the cube as the mesh to use for the boolean.   - Select the cube as the mesh to use for the boolean.
   - Apply the modifier.   - Apply the modifier.
Line 32: Line 48:
  
 Delete loose parts Delete loose parts
-  - Deselect all ''alt + a'' +  - Deselect all: ''Select > None'' (shortcut: ''alt + a''). 
-  - Hover the cursor over the mesh you want to keep and press ''l'' (lower caps L). This selects all vertices that are linked to the vertex underneath the cursor+  - Hover the cursor over the mesh you want to keep and press ''l'' (lower caps L). 
-  - Invert the selection ''ctrl + i'' +  - Invert the selection''Select > Invert'' (shortcut: ''cmd + i'') 
-  - delete the selected vertices ''x > Delete Vertices''+  - Delete the selected vertices ''Mesh > Delete > Vertices'' (shortcut: ''x > Delete Vertices'')
  
 {{:3d_modeling:blender:03_delete_geometry_-_loose_-_collage_-_arrows.jpg|}} {{:3d_modeling:blender:03_delete_geometry_-_loose_-_collage_-_arrows.jpg|}}
  
  
-===== Redistribute vertices =====+===== More advanced cleanup =====  
 + 
 +==== Redistribute vertices ====
 The 3D scanner generates a mesh with messy topology. There are areas with very large faces, and others where there are lots of vertices crammed together. This creates visible stress points in the mesh. The relax function moves the vertices away from densely populated areas in order to be more equally distributed. Having the mesh relaxed will prevent a series of problems later on. This will change the shape of the mesh a little bit though. The 3D scanner generates a mesh with messy topology. There are areas with very large faces, and others where there are lots of vertices crammed together. This creates visible stress points in the mesh. The relax function moves the vertices away from densely populated areas in order to be more equally distributed. Having the mesh relaxed will prevent a series of problems later on. This will change the shape of the mesh a little bit though.
  
-  - select all vertices ''a'' +  - Select all vertices ''a'' 
-  - Relax Vertices. A single iteration will do. ''Vertex > Relax''+  - Relax Vertices''Vertex > Relax''. A single iteration will do.
 {{:3d_modeling:blender:03_delete_geometry_-_relax.gif|}} {{:3d_modeling:blender:03_delete_geometry_-_relax.gif|}}
  
-===== Manually Fill Holes =====+==== Manually Fill Holes ====
  
-==== Tiny Holes ====+=== Tiny Holes ===
 Fill tiny holes by merging vertices together. This way the texture will stay visible. Fill tiny holes by merging vertices together. This way the texture will stay visible.
  
   - Select the first vertex. ''left mouse button''   - Select the first vertex. ''left mouse button''
   - Add the second vertex to the selection. ''shift + left mouse button''   - Add the second vertex to the selection. ''shift + left mouse button''
-  - Merge them together''alt + m > Merge At Last''+  - Merge them together: ''Vertex > Merge Vertices > At Last'' (shortcut: ''alt + m > Merge At Last'').
  
 {{:3d_modeling:blender:04_hole_fill_-_01_small_-_collage_-_arrows.jpg|}} {{:3d_modeling:blender:04_hole_fill_-_01_small_-_collage_-_arrows.jpg|}}
Line 60: Line 78:
  
  
-==== Medium Holes ====+=== Medium Holes ===
  
-=== Clean up the edge ===+== Clean up the edge ==
   - Manually clean up the edges of the holes. The scanner tends to leave the edges of larger holes curved inward. Select and delete the connecting vertices. Then the excess surface is floating and can be deleted by hovering over it with the cursor and then pressing ''l'' (lower caps L) to select and then delete all linked vertices.   - Manually clean up the edges of the holes. The scanner tends to leave the edges of larger holes curved inward. Select and delete the connecting vertices. Then the excess surface is floating and can be deleted by hovering over it with the cursor and then pressing ''l'' (lower caps L) to select and then delete all linked vertices.
   - Merge together irregularities like outward or inward triangles. Try to make the edge of the hole somewhat smooth.   - Merge together irregularities like outward or inward triangles. Try to make the edge of the hole somewhat smooth.
Line 69: Line 87:
 {{:3d_modeling:blender:04_hole_fill_-_02_medium_-_delete_-_collage_arrows.jpg|}} {{:3d_modeling:blender:04_hole_fill_-_02_medium_-_delete_-_collage_arrows.jpg|}}
  
-=== Fill in the gap === +== Fill in the gap == 
-- fill: ''Face > f'' (or ''alt + f'')+- fill: ''Face > Fill'' (shortcut: ''alt + f'')
  
 {{:3d_modeling:blender:04_hole_fill_-_03_medium_-_fill_arrows.jpg|}} {{:3d_modeling:blender:04_hole_fill_-_03_medium_-_fill_arrows.jpg|}}
  
  
-===== Retexture =====+==== Retexture ====
 New faces added to the mesh appear black or show random colours. They are referencing meaningless parts of the texture. Let's project the selected vertices to the texture and clone the surrounding texture onto that area. New faces added to the mesh appear black or show random colours. They are referencing meaningless parts of the texture. Let's project the selected vertices to the texture and clone the surrounding texture onto that area.
  
-  - In the ''UV Editing'' workspace, unwrap the current selection. ''UV > Unwrap''.+  - In the UV Editing workspace, unwrap the current selection. ''UV > Unwrap'' (shortcut: ''u > Unwrap'').
   - Scale down the selection in the UV editor and position it over a not yet textured area.   - Scale down the selection in the UV editor and position it over a not yet textured area.
-  - Switch to the ''Texture Paint'' workspace, Select the clone brush and set the source for the brush ''Ctrl + left mouse click'' (the 3D cursor will indicate the position). Now you're ready to draw.+  - Switch to the Texture Paint workspace, Select the clone brush and set the source for the brush ''Ctrl + left mouse click'' (the 3D cursor will indicate the position). Now you're ready to draw
 +  - After drawing **save the texture image(!)**. Otherwise you'll have to redo the work.
  
 {{:3d_modeling:blender:05_hole_retexture_-_collage_arrows.jpg|}} {{:3d_modeling:blender:05_hole_retexture_-_collage_arrows.jpg|}}
 ==== Big Holes ==== ==== Big Holes ====
-When the holes are big, closing them with ''fill'' results in a flat surface. Here are two ways to reconstruct the natural curve of the object. Clean up the edge of the hole as described above.+When the holes are big, closing them with ''Vertex > New Edge/Face from Vertices'' (shortcut: ''f''results in a flat surface that interrupts the flow of the shape. Here are two ways to reconstruct the natural curve of the object. Clean up the edge of the hole as described above.
  
 === Using Grid Fill === === Using Grid Fill ===
Line 93: Line 112:
     - Select all the vertices of the edge of the hole. No selected faces are allowed.     - Select all the vertices of the edge of the hole. No selected faces are allowed.
 {{:3d_modeling:blender:06_big_hole_-_gridfill_selection_-_arrows.jpg|}} {{:3d_modeling:blender:06_big_hole_-_gridfill_selection_-_arrows.jpg|}}
-  - Fill using the '[[https://docs.blender.org/manual/en/dev/modeling/meshes/editing/face/grid_fill.html?highlight=grid%20fill|grid fill]]' method. ''Face > Grid Fill''+  - Fill using the '[[https://docs.blender.org/manual/en/dev/modeling/meshes/editing/face/grid_fill.html?highlight=grid%20fill|grid fill]]' method. ''Face > Grid Fill''.
   - Play with the Grid Fill options until a proper fit.   - Play with the Grid Fill options until a proper fit.
     - **Span** makes different connection patterns.     - **Span** makes different connection patterns.
Line 102: Line 121:
  
 Clean up dark spots by resetting the normal vectors: Clean up dark spots by resetting the normal vectors:
-  - go to ''Edit Mode'' +  - Go to Edit Mode 
-  - select all vertices+  - Select all vertices
   - ''Mesh > Normals > Reset vectors''   - ''Mesh > Normals > Reset vectors''
-  - go back to ''object mode''+  - Go back to object mode
  
 {{:3d_modeling:blender:06_big_hole_-_gridfill_-_09_edge_cleanup_collage_arrows.jpg|}} {{:3d_modeling:blender:06_big_hole_-_gridfill_-_09_edge_cleanup_collage_arrows.jpg|}}
Line 112: Line 131:
  
 === Fill a big hole the manual way  === === Fill a big hole the manual way  ===
-  - Clean up the edgeTry have an even vertex distribution and a smooth edge.+ 
 +This is more tedious, but it allows for better control over the shape . 
 + 
 +{{:3d_modeling:blender:06_big_hole_-_manual_comparison_collage_arrows.jpg|}} 
   - With the edge vertices selected, go to ''Vertex > New Edge/Face from vertices''. (shortcut: ''f'') to fill the gap with a single n-gon.    - With the edge vertices selected, go to ''Vertex > New Edge/Face from vertices''. (shortcut: ''f'') to fill the gap with a single n-gon. 
-  - Shape the n-gon by selecting opposing vertices and joining them: ''Vertex > Connect Vertex Path'' (Shortcut ''j''). This will not create overlapping faces, but instead divides the current n-gon in half. The new vertex path will include any edge it runs through. +  - Shape the n-gon step by step by selecting opposing vertices and joining them: ''Vertex > Connect Vertex Path'' (Shortcut''j''). This will not create overlapping faces, but instead divides the current n-gon in half. The new vertex path will include any edge it runs through. This method allows you to define the new surface in stepsgoing from a rough definition to fine surface details. 
-  - If you need to delete elements (verticesedges or faces), dissolve rather than delete them''Mesh > Delete > Dissolve ...'' (shortcut: 'ctlr + x'') This way you keep the existing faces intact instead of making a hole. + 
 +{{:3d_modeling:blender:06_big_hole_-_manual_collage.jpg|}}\\ 
 +Gradually defining the shape
  
 +Tips:\\
 +  - Move vertices along the edges they're connected to: ''Vertex > Slide Vertices'' (Shortcut: ''shift + v'' or ''double tap g'')
 +  - Get a smoother result with proportional editing enabled
 +  - If you need to delete elements (vertices, edges or faces), dissolve rather than delete them. ''Mesh > Delete > Dissolve ...'' (shortcut: ''ctlr + x'') This way you keep the existing faces intact instead of making a hole. 
  
 Retexturing is the same as described above. Retexturing is the same as described above.
-===== Normals ===== 
  
-<wrap hi>Maybe better after having a watertight object</wrap>+==== Normals ====
  
   - Go to edit mode and select all vertices   - Go to edit mode and select all vertices
-  - Recalculate normals: ''shift + n'' +  - Recalculate normals: ''Mesh > Normals > Recalculate Outside'' (Shortcut: ''shift + n'')
-  - **IMG** Show the face normals for a visual check. In Edit mode: ''Overlays > Enable face normals''+  - If the visualisation lines are pointing inwards, select all vertices, ''Mesh > Normals > Flip''.
-  - If the blue face normals are pointing inwards, select all vertices, ''Mesh > Normals > Flip''. +
-  - **IMG** These spots are caused by split-normals that are stuck in the wrong direction. +
-    - To fix this, select all vertices, ''Mesh > Normals > Split'', and then ''Edge > Clear Sharp''+
  
-  - **IMG** These problems are visually similar to the wrong facing split-normals, but it's caused by clunky geometry.  +{{:3d_modeling:blender:07_normals_outside_collage_orig_arrows.jpg|}}\\ 
-    - If it's caused by vertices that are close to each other, run a [[https://docs.blender.org/manual/en/latest/modeling/meshes/editing/cleanup.html#degenerate-dissolve|Degenerative Dissolve]]. ''Mesh Clean Up > Degenerate Dissolve''. Try increasing the merge distance in small steps. +Show the face normals for a visual checkIn Edit mode: ''Overlays Enable face normals''.
-    - If it's caused by a small overlap, Fix the geometry by merging some of the problematic vertices. Avoid having to make new faces, because then you'll have to redo the texture on that face.+
  
  
  • 3d_modeling/blender/clean_up_occipital_3d_scan.1586185923.txt.gz
  • Last modified: 2020/04/06 08:12
  • by formlab