Skip to content

Commit

Permalink
make metchgui_one compatible with octave
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 15, 2020
1 parent 45a2ec2 commit c1dea88
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 60 deletions.
Empty file modified dist2surf.m
100755 → 100644
Empty file.
Empty file modified elemvolume.m
100755 → 100644
Empty file.
Empty file modified fillsurf.m
100755 → 100644
Empty file.
18 changes: 12 additions & 6 deletions gendocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ func_inquery="finddisconnsurf surfedge volface extractloops meshconn
meshcentroid nodevolume elemvolume neighborelem layersurf
faceneighbors edgeneighbors maxsurf flatsegment orderloopedge
mesheuler bbxflatsegment surfplane surfinterior surfpart
surfseeds meshquality meshedge meshface surfacenorm uniqedges uniqfaces
advancefront innersurf outersurf surfvolume insurface"
surfseeds meshquality meshedge meshface surfacenorm nodesurfnorm
uniqedges uniqfaces advancefront innersurf outersurf surfvolume
insurface"
func_meshfix="meshcheckrepair meshreorient removedupelem
removedupnodes removeisolatednode removeisolatedsurf
surfaceclean getintersecttri delendelem surfreorient"
func_metch="proj2mesh dist2mesh regpt2mesh affinemap metchgui metchgui_one"
func_remesh="meshresample remeshsurf smoothsurf sortmesh mergemesh
meshrefine mergesurf surfboolean fillsurf highordertet
elemfacecenter barydualmesh meshinterp meshremap extrudesurf"
Expand All @@ -46,21 +48,22 @@ func_fileio="saveasc savedxf savestl savebinstl saveinr saveoff
savevrml readasc readinr readmedit readoff readsmf
readtetgen deletemeshfile mcpath mwpath savemedit
savejson loadjson saveubjson loadubjson loadmsgpack savemsgpack
savemphtxt savetetgenele savetetgennode saveabaqus
savebj loadbj savemphtxt savetetgenele savetetgennode saveabaqus
savenirfast readnirfast readnifti readmptiff"
func_jdata="savejmesh loadjnifti savejnifti loadnifti savenifti jdataencode
jdatadecode"
jdatadecode jload jsave"
func_compression="zlibencode zlibdecode gzipencode gzipdecode lzmaencode
lzmadecode lzipencode lzipdecode lz4encode lz4decode lz4hcencode
lz4hcdecode"
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
func_misc="surfdiffuse volmap2mesh isoctavemesh getvarfrom raytrace linextriangle
getplanefrom3pt getexeext fallbackexeext iso2meshver
raysurf getoptkey rotatevec3d rotmat2vec varargin2struct
jsonopt mergestruct orthdisk"
jsonopt mergestruct orthdisk nestbracket2dim fast_match_bracket
match_bracket"

echo === "#" Streamlined mesh generation - shortcuts ===
print_group $func_shortcut
Expand All @@ -80,6 +83,9 @@ print_group $func_inquery
echo === "#" Mesh processing and reparing ===
print_group $func_meshfix

echo === "#" Mesh registration - Metch Toolbox ===
print_group $func_metch

echo === "#" Polyline handling ===
print_group $func_polyline

Expand Down
Empty file modified innersurf.m
100755 → 100644
Empty file.
Empty file modified insurface.m
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions iso2meshver.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
% -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
%

major=1;
minor=9;
major=2;
minor=0;
patchnum=0;
extra='$Rev:: $';
extra=regexprep(extra,'[\s$:]', '');
Expand Down
55 changes: 3 additions & 52 deletions metchgui_one.m
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'HandleVisibility','callback',...
'Tag','MetchGUI',...
'UserData',[],...
'Behavior',get(0,'defaultfigureBehavior'),...
'Visible','on',...
'CreateFcn', {@local_CreateFcn, '', appdata} );

Expand All @@ -546,7 +545,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'ZColor',get(0,'defaultaxesZColor'),...
'ButtonDownFcn','metchgui_one(''axMesh_ButtonDownFcn'',gcbo,[],guidata(gcbo))',...
'Tag','axMesh',...
'Behavior',get(0,'defaultaxesBehavior'),...
'CreateFcn', {@local_CreateFcn, '', appdata} );

h3 = get(h2,'title');
Expand All @@ -558,7 +556,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -577,20 +574,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h4 = get(h2,'xlabel');
Expand All @@ -602,7 +594,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -621,20 +612,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h5 = get(h2,'ylabel');
Expand All @@ -646,7 +632,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -665,20 +650,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h6 = get(h2,'zlabel');
Expand All @@ -690,7 +670,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -709,20 +688,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','off',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

appdata = [];
Expand All @@ -742,7 +716,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'ZColor',get(0,'defaultaxesZColor'),...
'ButtonDownFcn','metchgui_one(''axPoints_ButtonDownFcn'',gcbo,[],guidata(gcbo))',...
'Tag','axPoints',...
'Behavior',get(0,'defaultaxesBehavior'),...
'CreateFcn', {@local_CreateFcn, '', appdata} );

h8 = get(h7,'title');
Expand All @@ -754,7 +727,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -773,20 +745,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h9 = get(h7,'xlabel');
Expand All @@ -798,7 +765,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -817,20 +783,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h10 = get(h7,'ylabel');
Expand All @@ -842,7 +803,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -861,20 +821,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

h11 = get(h7,'zlabel');
Expand All @@ -886,7 +841,6 @@ function btHelp_Callback(hObject, eventdata, handles)
'BackgroundColor','none',...
'Color',[0 0 0],...
'EdgeColor','none',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
Expand All @@ -905,20 +859,15 @@ function btHelp_Callback(hObject, eventdata, handles)
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey','',...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag','',...
'UserData',[],...
'Behavior',struct(),...
'Visible','off',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'Clipping','off');

appdata = [];
Expand Down Expand Up @@ -1268,7 +1217,9 @@ function local_CreateFcn(hObject, eventdata, createfcn, appdata)
gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);
% openfig (called by local_openfig below) does this for guis without
% the LayoutFcn. Be sure to do it here so guis show up on screen.
movegui(gui_hFigure,'onscreen')
if(exist('movegui'))
movegui(gui_hFigure,'onscreen');
end
else
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
% If the figure has InGUIInitialization it was not completely created
Expand Down
Empty file modified nodesurfnorm.m
100755 → 100644
Empty file.
Empty file modified nodevolume.m
100755 → 100644
Empty file.
Empty file modified outersurf.m
100755 → 100644
Empty file.
Empty file modified surfvolume.m
100755 → 100644
Empty file.

0 comments on commit c1dea88

Please sign in to comment.