OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update document
[meshio/pymeshio.git]
/
test
/
mqo_test.py
diff --git
a/test/mqo_test.py
b/test/mqo_test.py
index
5b054c8
..
b2bbd1b
100644
(file)
--- a/
test/mqo_test.py
+++ b/
test/mqo_test.py
@@
-1,15
+1,13
@@
import pymeshio.mqo
import pymeshio.mqo
+import pymeshio.mqo.reader
import sys
import sys
+
MQO_FILE="resources/cube.mqo"
MQO_FILE="resources/cube.mqo"
-def test_old_mqo_load():
- io=pymeshio.mqo.IO()
- assert io.read(MQO_FILE)
-def test_mqo_load():
- model=pymeshio.mqo.loader.load(MQO_FILE)
- print(model.materials)
+def test_mqo_read():
+ model=pymeshio.mqo.reader.read_from_file(MQO_FILE)
assert pymeshio.mqo.Model==model.__class__
assert 6==len(model.materials)
assert 1==len(model.objects)
assert pymeshio.mqo.Model==model.__class__
assert 6==len(model.materials)
assert 1==len(model.objects)