[pyassimp] Make it easier to import pyassimp
'import pyassimp' (instead of 'from pyassimp import core') is now sufficientpull/22/head
parent
b00ee8b24a
commit
fb280d7cf5
|
@ -25,7 +25,7 @@ substituted by assertions ...):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
from pyassimp.core import *
|
from pyassimp import *
|
||||||
scene = load('hello.3ds')
|
scene = load('hello.3ds')
|
||||||
|
|
||||||
assert len(scene.meshes)
|
assert len(scene.meshes)
|
||||||
|
@ -44,7 +44,7 @@ scene:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
from pyassimp.core import *
|
from pyassimp import *
|
||||||
scene = load('hello.3ds')
|
scene = load('hello.3ds')
|
||||||
|
|
||||||
for c in scene.rootnode.children:
|
for c in scene.rootnode.children:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
from .core import *
|
|
@ -15,7 +15,7 @@ Based on:
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger("underworlds.3d_viewer")
|
logger = logging.getLogger("pyassimp")
|
||||||
gllogger = logging.getLogger("OpenGL")
|
gllogger = logging.getLogger("OpenGL")
|
||||||
gllogger.setLevel(logging.WARNING)
|
gllogger.setLevel(logging.WARNING)
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
@ -38,7 +38,7 @@ import math, random
|
||||||
import numpy
|
import numpy
|
||||||
from numpy import linalg
|
from numpy import linalg
|
||||||
|
|
||||||
from pyassimp import core as pyassimp
|
import pyassimp
|
||||||
from pyassimp.postprocess import *
|
from pyassimp.postprocess import *
|
||||||
from pyassimp.helper import *
|
from pyassimp.helper import *
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ This module demonstrates the functionality of PyAssimp.
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
from pyassimp import core as pyassimp
|
import pyassimp
|
||||||
|
|
||||||
def recur_node(node,level = 0):
|
def recur_node(node,level = 0):
|
||||||
print(" " + "\t" * level + "- " + str(node))
|
print(" " + "\t" * level + "- " + str(node))
|
||||||
|
|
|
@ -35,7 +35,7 @@ logging.basicConfig(level=logging.INFO)
|
||||||
import math
|
import math
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
from pyassimp import core as pyassimp
|
import pyassimp
|
||||||
from pyassimp.postprocess import *
|
from pyassimp.postprocess import *
|
||||||
from pyassimp.helper import *
|
from pyassimp.helper import *
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue