Skip to content

Commit 2997108

Browse files
committed
[port] add additional missing IO and utility functions, fix meshremap bug
1 parent bfc6e69 commit 2997108

8 files changed

Lines changed: 1365 additions & 59 deletions

File tree

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,17 @@ tracked in https://github.com/NeuroJSON/pyiso2mesh/issues/1
205205
|`s2v.m` | ✅ tested | |`savebinstl.m` | ⭕️ tested |
206206
|`m2v.m` | ✅ tested | |`saveinr.m` | ⭕️ tested |
207207
|`sms.m` | ✅ tested | |`saveoff.m` | ✅ tested |
208-
| > Streamlined mesh generation| | | ⭕️ `savesmf.m` | ⭕️ tested |
208+
| > Streamlined mesh generation| | | `savesmf.m` | ⭕️ tested |
209209
|`vol2mesh.m` | ✅ tested | |`savesurfpoly.m` | ✅ tested |
210-
|`vol2surf.m` | ✅ tested | | ⭕️ `savegts.m` | ⭕️ tested |
211-
|`surf2mesh.m` | ✅ tested | | ⭕️ `readgts.m` | ⭕️ tested |
212-
|`surf2vol.m` | ✅ tested | | ⭕️ `savemsh.m` | ⭕️ tested |
213-
|`mesh2vol.m` | ✅ tested | | ⭕️ `savevrml.m` | ⭕️ tested |
210+
|`vol2surf.m` | ✅ tested | | `savegts.m` | ⭕️ tested |
211+
|`surf2mesh.m` | ✅ tested | | `readgts.m` | ⭕️ tested |
212+
|`surf2vol.m` | ✅ tested | | `savemsh.m` | ⭕️ tested |
213+
|`mesh2vol.m` | ✅ tested | | `savevrml.m` | ⭕️ tested |
214214
| > Iso2mesh main function backend| | |`readasc.m` | ⭕️ tested |
215-
|`binsurface.m` | ✅ tested | | ⭕️ `readinr.m` | ⭕️ tested |
215+
|`binsurface.m` | ✅ tested | | `readinr.m` | ⭕️ tested |
216216
|`cgalv2m.m` | ✅ tested | |`readmedit.m` | ⭕️ tested |
217217
|`cgals2m.m` | ✅ tested | |`readoff.m` | ✅ tested |
218-
|`vol2restrictedtri.m` | ✅ tested | | ⭕️ `readsmf.m` | ⭕️ tested |
218+
|`vol2restrictedtri.m` | ✅ tested | | `readsmf.m` | ⭕️ tested |
219219
|`surf2volz.m` | ✅ tested | |`readtetgen.m` | ✅ tested |
220220
|`mesh2mask.m` | ✅ tested | |`deletemeshfile.m` | ✅ tested |
221221
| > Iso2mesh primitive meshing| | |`mcpath.m` | ✅ tested |
@@ -229,21 +229,21 @@ tracked in https://github.com/NeuroJSON/pyiso2mesh/issues/1
229229
|`latticegrid.m` | ✅ tested | |`savemsgpack.m` | ⭕️ tested |
230230
|`extrudecurve.m` | ⭕️ tested | |`savebj.m` | ⭕️ tested |
231231
|`meshcylinders.m` | ✅ tested | |`loadbj.m` | ⭕️ tested |
232-
| > Mesh decomposition and query| | | ⭕️ `savemphtxt.m` | ⭕️ tested |
232+
| > Mesh decomposition and query| | | `savemphtxt.m` | ⭕️ tested |
233233
|`finddisconnsurf.m` | ✅ tested | |`savetetgenele.m` | ⭕️ tested |
234234
|`surfedge.m` | ✅ tested | |`savetetgennode.m` | ⭕️ tested |
235-
|`volface.m` | ✅ tested | | ⭕️ `saveabaqus.m` | ⭕️ tested |
236-
|`extractloops.m` | ✅ tested | | ⭕️ `savenirfast.m` | ⭕️ tested |
237-
|`meshconn.m` | ✅ tested | | ⭕️ `readnirfast.m` | ⭕️ tested |
235+
|`volface.m` | ✅ tested | | `saveabaqus.m` | ⭕️ tested |
236+
|`extractloops.m` | ✅ tested | | `savenirfast.m` | ⭕️ tested |
237+
|`meshconn.m` | ✅ tested | | `readnirfast.m` | ⭕️ tested |
238238
|`meshcentroid.m` | ✅ tested | |`loadnifti.m` | ⭕️ tested |
239-
|`nodevolume.m` | ✅ tested | | ⭕️ `readmptiff.m` | ⭕️ tested |
239+
|`nodevolume.m` | ✅ tested | | `readmptiff.m` | ⭕️ tested |
240240
|`elemvolume.m` | ✅ tested | |`loadjsnirf.m` | ⭕️ tested |
241241
|`neighborelem.m` | ✅ tested | |`savejsnirf.m` | ⭕️ tested |
242242
|`layersurf.m` | ⭕️ tested | |`loadsnirf.m` | ⭕️ tested |
243243
|`faceneighbors.m` | ✅ tested | |`savesnirf.m` | ⭕️ tested |
244-
|`edgeneighbors.m` | ✅ tested | | ⭕️ `readobjmesh.m` | ⭕️ tested |
245-
|`maxsurf.m` | ⭕️ tested | | ⭕️ `loadjmesh.m` | ⭕️ tested |
246-
|`flatsegment.m` | ⭕️ tested | | ⭕️ `savejmesh.m` | ⭕️ tested |
244+
|`edgeneighbors.m` | ✅ tested | | `readobjmesh.m` | ⭕️ tested |
245+
|`maxsurf.m` | ⭕️ tested | | `loadjmesh.m` | ⭕️ tested |
246+
|`flatsegment.m` | ⭕️ tested | | `savejmesh.m` | ⭕️ tested |
247247
|`orderloopedge.m` | ⭕️ tested | | > Volumetric image pre-processing | |
248248
|`mesheuler.m` | ✅ tested | |`volgrow.m` | ✅ tested |
249249
|`bbxflatsegment.m` | ⭕️ tested | |`volshrink.m` | ✅ tested |
@@ -254,22 +254,22 @@ tracked in https://github.com/NeuroJSON/pyiso2mesh/issues/1
254254
|`meshquality.m` | ✅ tested | | ⭕️ `laplacefill.m` | ⭕️ tested |
255255
|`meshedge.m` | ✅ tested | | ⭕️ `deislands2d.m` | ⭕️ tested |
256256
|`meshface.m` | ✅ tested | | ⭕️ `deislands3d.m` | ⭕️ tested |
257-
|`surfacenorm.m` | ✅ tested | | ⭕️ `ndgaussian.m` | ⭕️ tested |
258-
|`nodesurfnorm.m` | ✅ tested | | ⭕️ `ndimfilter.m` | ⭕️ tested |
257+
|`surfacenorm.m` | ✅ tested | | `ndgaussian.m` | ⭕️ tested |
258+
|`nodesurfnorm.m` | ✅ tested | | `ndimfilter.m` | ⭕️ tested |
259259
|`uniqedges.m` | ✅ tested | | ⭕️ `imedge3d.m` | ⭕️ tested |
260260
|`uniqfaces.m` | ✅ tested | | ⭕️ `internalpoint.m` | ⭕️ tested |
261261
|`advancefront.m` | ⭕️ tested | | ⭕️ `smoothbinvol.m` | ⭕️ tested |
262262
|`innersurf.m` | ⭕️ tested | |`thickenbinvol.m` | ✅ tested |
263263
|`outersurf.m` | ⭕️ tested | |`thinbinvol.m` | ✅ tested |
264-
|`surfvolume.m` | ✅ tested | | ⭕️ `maskdist.m` | ⭕️ tested |
264+
|`surfvolume.m` | ✅ tested | | `maskdist.m` | ⭕️ tested |
265265
|`insurface.m` | ✅ tested | | > Mesh plotting | |
266266
| > Mesh processing and reparing| | |`plotmesh.m` | ✅ tested |
267267
|`meshcheckrepair.m` | ✅ tested | |`plotsurf.m` | ✅ tested |
268268
|`meshreorient.m` | ✅ tested | |`plottetra.m` | ✅ tested |
269269
|`removedupelem.m` | ✅ tested | |`plotedges.m` | ✅ tested |
270270
|`removedupnodes.m` | ✅ tested | |`qmeshcut.m` | ✅ tested |
271271
|`removeisolatednode.m` | ✅ tested | | > Miscellaneous functions | |
272-
|`removeisolatedsurf.m` | ⭕️ tested | | ⭕️ `surfdiffuse.m` | ⭕️ tested |
272+
|`removeisolatedsurf.m` | ⭕️ tested | | `surfdiffuse.m` | ⭕️ tested |
273273
|`surfaceclean.m` | ⭕️ tested | | ⭕️ `volmap2mesh.m` | ⭕️ tested |
274274
|`getintersecttri.m` | ⭕️ tested | | ⭕️ `isoctavemesh.m` | ⭕️ tested |
275275
|`delendelem.m` | ⭕️ tested | | ⭕️ `getvarfrom.m` | ⭕️ tested |
@@ -279,14 +279,14 @@ tracked in https://github.com/NeuroJSON/pyiso2mesh/issues/1
279279
|`dist2surf.m` | ⭕️ tested | |`getexeext.m` | ✅ tested |
280280
|`regpt2surf.m` | ⭕️ tested | |`fallbackexeext.m` | ✅ tested |
281281
|`affinemap.m` | ⭕️ tested | | ⭕️ `iso2meshver.m` | ⭕️ tested |
282-
| > Polyline handling| | | ⭕️ `raysurf.m` | ⭕️ tested |
282+
| > Polyline handling| | | `raysurf.m` | ⭕️ tested |
283283
|`slicesurf.m` | ⭕️ tested | | ⭕️ `getoptkey.m` | ⭕️ tested |
284284
|`slicesurf3.m` | ⭕️ tested | |`rotatevec3d.m` | ⭕️ tested |
285285
|`polylinelen.m` | ⭕️ tested | |`rotmat2vec.m` | ⭕️ tested |
286286
|`polylinesimplify.m` | ⭕️ tested | |`varargin2struct.m` | ⭕️ tested |
287287
|`polylineinterp.m` | ⭕️ tested | |`jsonopt.m` | ⭕️ tested |
288288
|`closestnode.m` | ⭕️ tested | | ⭕️ `mergestruct.m` | ⭕️ tested |
289-
| > Mesh resampling and optimization| | | ⭕️ `orthdisk.m` | ⭕️ tested |
289+
| > Mesh resampling and optimization| | | `orthdisk.m` | ⭕️ tested |
290290
|`meshresample.m` | ✅ tested | | ⭕️ `nestbracket2dim.m` | ⭕️ tested |
291291
|`remeshsurf.m` | ✅ tested | |`memmapstream.m` | ⭕️ tested |
292292
|`smoothsurf.m` | ✅ tested | |`aos2soa.m` | ⭕️ tested |

iso2mesh/__init__.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
varargin2struct,
137137
jsonopt,
138138
nargout,
139+
orthdisk,
140+
surfdiffuse,
139141
)
140142

141143
from .io import (
@@ -148,6 +150,19 @@
148150
readtetgen,
149151
savesurfpoly,
150152
readoff,
153+
loadjmesh,
154+
savejmesh,
155+
readinr,
156+
readmptiff,
157+
readnirfast,
158+
savenirfast,
159+
readobjmesh,
160+
readsmf,
161+
saveabaqus,
162+
savemphtxt,
163+
savemsh,
164+
savesmf,
165+
savevrml,
151166
)
152167

153168
from .core import (
@@ -196,6 +211,8 @@
196211
domeshsimplify,
197212
slicesurf,
198213
slicesurf3,
214+
raysurf,
215+
raytrace,
199216
)
200217

201218
from .line import (
@@ -240,6 +257,9 @@
240257
fillholes3d,
241258
thickenbinvol,
242259
thinbinvol,
260+
maskdist,
261+
ndgaussian,
262+
ndimfilter,
243263
)
244264

245265
__version__ = "0.5.2"
@@ -447,5 +467,25 @@
447467
"slicesurf3",
448468
"bbxflatsegment",
449469
"orderloopedge",
470+
"loadjmesh",
471+
"savejmesh",
472+
"readinr",
473+
"readmptiff",
474+
"readnirfast",
475+
"savenirfast",
476+
"readobjmesh",
477+
"readsmf",
478+
"saveabaqus",
479+
"savemphtxt",
480+
"savemsh",
481+
"savesmf",
482+
"savevrml",
483+
"raysurf",
484+
"raytrace",
485+
"orthdisk",
486+
"surfdiffuse",
487+
"maskdist",
488+
"ndgaussian",
489+
"ndimfilter",
450490
]
451491
__license__ = """GNU General Public License v3 and later"""

0 commit comments

Comments
 (0)