Update READMEs

pull/3271/head
David 2020-06-09 08:33:09 +02:00
parent efbabf3b0d
commit b84dbb68ec
2 changed files with 20 additions and 28 deletions

View File

@ -42,8 +42,8 @@ substituted by assertions ...):
```python
from pyassimp import *
scene = load('hello.3ds')
from pyassimp import load
with load('hello.3ds') as scene:
assert len(scene.meshes)
mesh = scene.meshes[0]
@ -51,9 +51,6 @@ mesh = scene.meshes[0]
assert len(mesh.vertices)
print(mesh.vertices[0])
# don't forget this one, or you will leak!
release(scene)
```
Another example to list the 'top nodes' in a
@ -61,14 +58,12 @@ scene:
```python
from pyassimp import *
scene = load('hello.3ds')
from pyassimp import load
with load('hello.3ds') as scene:
for c in scene.rootnode.children:
print(str(c))
release(scene)
```
INSTALL

View File

@ -49,8 +49,8 @@ substituted by assertions ...):
.. code:: python
from pyassimp import *
scene = load('hello.3ds')
from pyassimp import load
with load('hello.3ds') as scene:
assert len(scene.meshes)
mesh = scene.meshes[0]
@ -58,21 +58,18 @@ substituted by assertions ...):
assert len(mesh.vertices)
print(mesh.vertices[0])
# don't forget this one, or you will leak!
release(scene)
Another example to list the 'top nodes' in a scene:
.. code:: python
from pyassimp import *
scene = load('hello.3ds')
from pyassimp import load
with load('hello.3ds') as scene:
for c in scene.rootnode.children:
print(str(c))
release(scene)
INSTALL
-------