@@ -1187,9 +1187,9 @@ def test_v2s_label(self):
1187
1187
)
1188
1188
1189
1189
def test_v2s_grayscale (self ):
1190
- no , fc , _ , _ = v2s (self .dist , [200 , 400 ], 1 )
1190
+ no , fc , _ , _ = v2s (self .dist , [200 , 400 ], 2 )
1191
1191
self .assertAlmostEqual (
1192
- sum (elemvolume (no [:, :3 ], fc [:, :3 ])) * 0.0001 , 4.816236473144449 , 3
1192
+ sum (elemvolume (no [:, :3 ], fc [:, :3 ])) * 0.0001 , 4.781791110333593 , 3
1193
1193
)
1194
1194
1195
1195
def test_finddisconnsurf (self ):
@@ -1227,10 +1227,10 @@ def test_s2m_plc(self):
1227
1227
)
1228
1228
1229
1229
def test_remeshsurf (self ):
1230
- no , fc , _ , _ = v2s (self .dist , 100 , 2 )
1230
+ no , fc , _ , _ = v2s (self .dist < 100 , 0.5 , 1 )
1231
1231
no1 , fc1 = remeshsurf (no , fc , 1 )
1232
1232
self .assertAlmostEqual (
1233
- sum (elemvolume (no [:, :3 ], fc [:, :3 ])) * 0.0001 , 2.034550093898604 , 3
1233
+ sum (elemvolume (no [:, :3 ], fc [:, :3 ])) * 0.0001 , 0.1290690532542782 , 3
1234
1234
)
1235
1235
1236
1236
def test_surf2volz (self ):
@@ -1257,12 +1257,12 @@ def test_surf2vol_fill(self):
1257
1257
vol = surf2vol (
1258
1258
self .no ,
1259
1259
self .fc ,
1260
- np .arange (19 , 42 , 1 ),
1261
- np .arange (19 , 42 , 1 ),
1262
- np .arange (19 , 42 , 1 ),
1260
+ np .arange (19 , 42 , 0.5 ),
1261
+ np .arange (19 , 42 , 0.5 ),
1262
+ np .arange (19 , 42 , 0.5 ),
1263
1263
fill = 1 ,
1264
1264
)
1265
- self .assertAlmostEqual (np .sum (vol .astype (np .float32 )) * 0.001 , 4.903 , 2 )
1265
+ self .assertAlmostEqual (np .sum (vol .astype (np .float32 )) * 0.0001 , 3.5536 , 2 )
1266
1266
1267
1267
def test_s2v (self ):
1268
1268
vol = s2v (self .no , self .fc , fill = 1 )
0 commit comments