forked from fangq/iso2mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gendocs.sh
executable file
·91 lines (76 loc) · 3.43 KB
/
gendocs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/sh
#============================================================
# iso2mesh inline documentation to wiki convertor
#
# Author: Qianqian Fang <q.fang at neu.edu>
#============================================================
print_help()
{
awk '/^%/ {dp=1} /-- this function is part of iso2mesh/ {exit} \
/-- this function is part of JSONLab/ {exit} \
/^function/ {dp=1} /./ {if(dp==1) print;}' $1 \
| grep -v 'Qianqian' | grep -v 'date:' | #grep -v '^%\s*$'| \
sed -e 's/^%//g' -e 's/^function\(.*$\)/\n==== function\1 ====/g'
}
print_group()
{
for fun in $@
do
print_help $fun.m
done
echo ''
}
func_shortcut="v2m v2s s2m s2v m2v sms i2m"
func_mainfun="vol2mesh vol2surf surf2mesh surf2vol mesh2vol img2mesh"
func_backend="binsurface cgalv2m cgals2m vol2restrictedtri surf2volz mesh2mask"
func_primitive="meshabox meshasphere meshanellip meshunitsphere meshacylinder
meshgrid5 meshgrid6 latticegrid extrudecurve meshcylinders"
func_inquery="finddisconnsurf surfedge volface extractloops meshconn
meshcentroid nodevolume elemvolume neighborelem
faceneighbors edgeneighbors maxsurf flatsegment orderloopedge
mesheuler bbxflatsegment surfplane surfinterior surfpart
surfseeds meshquality meshedge meshface surfacenorm uniqedges uniqfaces
advancefront innersurf outersurf surfvolume insurface"
func_meshfix="meshcheckrepair meshreorient removedupelem
removedupnodes removeisolatednode removeisolatedsurf
surfaceclean getintersecttri delendelem surfreorient"
func_remesh="meshresample remeshsurf smoothsurf sortmesh mergemesh
meshrefine mergesurf surfboolean fillsurf highordertet
elemfacecenter barydualmesh meshinterp meshremap extrudesurf"
func_fileio="saveasc savedxf savestl savebinstl saveinr saveoff
savesmf savesurfpoly savegts readgts savemsh
savevrml readasc readinr readmedit readoff readsmf
readtetgen deletemeshfile mcpath mwpath savemedit
savejson loadjson saveubjson loadubjson savejmesh
savemphtxt savetetgenele savetetgennode saveabaqus
savenirfast readnirfast readnifti readmptiff"
func_binimage="bwislands fillholes3d deislands2d deislands3d
imedge3d internalpoint smoothbinvol
thickenbinvol thinbinvol maskdist"
func_plotting="plotmesh plotsurf plottetra plotedges qmeshcut"
func_misc="surfdiffuse volmap2mesh isoctavemesh getvarfrom raytrace
getplanefrom3pt getexeext fallbackexeext iso2meshver
raysurf getoptkey rotatevec3d rotmat2vec varargin2struct
jsonopt mergestruct orthdisk jdatadecode jdataencode"
echo === "#" Streamlined mesh generation - shortcuts ===
print_group $func_shortcut
echo === "#" Streamlined mesh generation ===
print_group $func_mainfun
echo === "#" iso2mesh main function backend ===
print_group $func_backend
echo === "#" iso2mesh primitive meshing functions ===
print_group $func_primitive
echo === "#" Mesh decomposition and query ===
print_group $func_inquery
echo === "#" Mesh processing and reparing ===
print_group $func_meshfix
echo === "#" Mesh resampling and optimization ===
print_group $func_remesh
echo === "#" File I/O ===
print_group $func_fileio
echo === "#" Volumetric image pre-processing ===
print_group $func_binimage
echo === "#" Mesh plotting ===
print_group $func_plotting
echo === "#" Miscellaneous functions ===
print_group $func_misc