Package
|
Mesh (all TriComp packages)
|
Input files
|
Image01.bmp. Image01.min, Image02.bmp, Image02.min
Download Mesh_Digital_Images.zip
|
Description
|
An advanced feature of Mesh (the conformal triangular mesh generator for all 2D TriComp programs) is the ability to generate meshes incorporating information from digital images. The process is described in Chap. 8 of the Mesh manual. The images could be photgraphs, technical data or diagrams in a variety of formats. The examples represent the two applications of the capability: 1) modeling complex shapes that would be difficult to represent with a set of line and arc vectors and 2) approximating variations of physical quantities with a set of mesh regions. Each example includes an image file and a Mesh input file to map the information on a mesh.
|
Results
|
The top figure illustrates mesh generation from a diagram. The monochrome image was edited in image software to fill the interior space of gear with a distinctive uniform color (hue value 216°). The Mesh input file includes the Image section:
IMAGE
ImageFile Image01.bmp -0.750 0.500 4.25 4.425
Intervals Hue
215 217
End
Correct 10
END
The coordinates in the ImageFile command map the blue pixels of the image into the center of the solution space with an aspect ratio to preserve the circular shape of gear. Correction cycles are applied to smooth out sharp edges of the initially uniform triangular mesh. The process moves selected boundary nodes. The final result is a good representation of the shape but not an exact one. If an application calls for a precise model, a region section with 90 vectors would be required.
The file for the second example (Image02.bmp) represents fluid flow velocity around one rod in an array. The rod has been filled with unique color so that the its volume will not be included in the image elements. Entries in the Intevals have been assigned to create the desired number of contour regions and to exclude the rod. The choice was aided by tablels recorded in the listing file Image02.MLS.
|