From bacce46a724c0f8e35ce6cd0e470c3c25fbdc4b3 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 4 Oct 2011 02:53:55 +0900 Subject: [PATCH] fix --- pymeshio/mqo/__init__.py | 18 ++++++++++++++++-- pymeshio/mqo/reader.py | 15 +++------------ pymeshio/pmd/__init__.py | 18 ++++++++++++++++-- pymeshio/pmd/reader.py | 3 +++ pymeshio/pmd/writer.py | 3 +++ pymeshio/pmx/__init__.py | 18 +++++++++++++++--- pymeshio/pmx/reader.py | 3 +++ pymeshio/pmx/writer.py | 3 +++ 8 files changed, 62 insertions(+), 19 deletions(-) diff --git a/pymeshio/mqo/__init__.py b/pymeshio/mqo/__init__.py index 77c6328..a21794c 100644 --- a/pymeshio/mqo/__init__.py +++ b/pymeshio/mqo/__init__.py @@ -1,7 +1,21 @@ # coding: utf-8 """ -MQOの読み込み -http://www.metaseq.net/metaseq/format.html +====================== +Metasequioa MQO format +====================== + +file format +~~~~~~~~~~~ +* http://www.metaseq.net/metaseq/format.html + +specs +~~~~~ +* textencoding: bytes(cp932) +* coordinate: right handed y-up +* uv origin: +* face: edge(2), triangle(3), quadrangle(4) +* backculling: enable + """ import os diff --git a/pymeshio/mqo/reader.py b/pymeshio/mqo/reader.py index 2802b5b..a5ada0b 100644 --- a/pymeshio/mqo/reader.py +++ b/pymeshio/mqo/reader.py @@ -1,18 +1,9 @@ # coding: utf-8 -import io -from .. import mqo """ -#print(sys.version_info[0]) - #if sys.version_info[0]<3: - # io=open(path, ) - #else: - # io=open(path, encoding='cp932') - #result=method(self) - #self.io.close() - #self.io=None - #return result +mqo reader """ - +import io +from .. import mqo class Reader(object): """mqo reader diff --git a/pymeshio/pmd/__init__.py b/pymeshio/pmd/__init__.py index 61b1d01..f3c8e4f 100644 --- a/pymeshio/pmd/__init__.py +++ b/pymeshio/pmd/__init__.py @@ -1,7 +1,21 @@ # coding: utf-8 """ -PMDの読み込み -http://blog.goo.ne.jp/torisu_tetosuki/e/209ad341d3ece2b1b4df24abf619d6e4 +======================== +MikuMikuDance PMD format +======================== + +file format +~~~~~~~~~~~ +* http://blog.goo.ne.jp/torisu_tetosuki/e/209ad341d3ece2b1b4df24abf619d6e4 + +specs +~~~~~ +* textencoding: bytes(cp932) +* coordinate: left handed y-up(DirectX) +* uv origin: +* face: only triangle +* backculling: + """ import os import sys diff --git a/pymeshio/pmd/reader.py b/pymeshio/pmd/reader.py index 6b8c5da..9183c0d 100644 --- a/pymeshio/pmd/reader.py +++ b/pymeshio/pmd/reader.py @@ -1,4 +1,7 @@ #coding: utf-8 +""" +pmd reader +""" import io from .. import common from .. import pmd diff --git a/pymeshio/pmd/writer.py b/pymeshio/pmd/writer.py index 0e7ec0d..136ec7a 100644 --- a/pymeshio/pmd/writer.py +++ b/pymeshio/pmd/writer.py @@ -1,4 +1,7 @@ # coding: utf-8 +""" +pmd writer +""" import io import struct from .. import common diff --git a/pymeshio/pmx/__init__.py b/pymeshio/pmx/__init__.py index 42b15f6..77d45a3 100644 --- a/pymeshio/pmx/__init__.py +++ b/pymeshio/pmx/__init__.py @@ -1,10 +1,22 @@ #!/usr/bin/env python # coding: utf-8 """ -pmx file io library. +======================== +MikuMikuDance PMX format +======================== + +file format +~~~~~~~~~~~ +* PMDEditor's Lib/PMX仕様/PMX仕様.txt + +specs +~~~~~ +* textencoding: unicode +* coordinate: left handed y-up(DirectX) +* uv origin: +* face: only triangle +* backculling: -pmx file format: - PMDEditor's Lib/PMX仕様/PMX仕様.txt """ __author__="ousttrue" __license__="zlib" diff --git a/pymeshio/pmx/reader.py b/pymeshio/pmx/reader.py index a95ab21..ee3d211 100644 --- a/pymeshio/pmx/reader.py +++ b/pymeshio/pmx/reader.py @@ -1,4 +1,7 @@ # coding: utf-8 +""" +pmx reader +""" import io import pymeshio.common import pymeshio.pmx diff --git a/pymeshio/pmx/writer.py b/pymeshio/pmx/writer.py index 033d944..bc0b13c 100644 --- a/pymeshio/pmx/writer.py +++ b/pymeshio/pmx/writer.py @@ -1,4 +1,7 @@ # coding: utf-8 +""" +pmx writer +""" import io import struct from .. import common -- 2.11.0