项目作者: otvam

项目描述 :
MATLAB Code for Creating a Mesh from a Bitmap Image
高级语言: MATLAB
项目地址: git://github.com/otvam/mesh_from_bitmap_matlab.git
创建时间: 2020-01-17T16:57:02Z
项目社区:https://github.com/otvam/mesh_from_bitmap_matlab

开源协议:BSD 2-Clause "Simplified" License

下载


MATLAB Code for Creating a Mesh from a Bitmap Image

license - BSD
language - MATLAB
category - hobby
status - unmaintained

This MATLAB code generates a mesh from a black and white bitmap image:

  • Find the contour of a black and white bitmap image (raster)
  • Simplify the contour with a specified tolerance
  • Mesh the shape (handling of holes and multiple domains)

This code uses the MATLAB PDE toolbox and generatates a FEM mesh (FEMesh object).
However, the mesh can be used for other purposes than FEM simulations, such as 3d printing.

Example

Look at the example run_example.m which generates the following mesh:




Compatibility

  • Tested with MATLAB R2018b.
  • The image_toolbox is required (for contour detection).
  • The map_toolbox is required (for contour simplification).
  • The pde_toolbox is required (for meshing).
  • Compatibility with GNU Octave not tested but probably problematic.

This code share some files with laser_cut_matlab_slicer.

Author

Thomas Guillod - GitHub Profile

License

This project is licensed under the BSD License, see LICENSE.md.