Scene constructor
Contents
[
Hide
]__init__(self)
Initializes a new instance of the Scene
class.
def __init__(self):
...
__init__(self, entity)
Initializes a new instance of the Scene
class with an entity attached to a new node.
def __init__(self, entity):
...
Parameter | Type | Description |
---|---|---|
entity | Entity | The initial entity that attached to the scene |
Example
The following code shows how to create a Scene
directly from an Entity
:
from aspose.threed import Scene
from aspose.threed.entities import Box
scene = Scene(Box())
__init__(self, parent_scene, name)
Initializes a new instance of the Scene
class as a sub-scene.
def __init__(self, parent_scene, name):
...
Parameter | Type | Description |
---|---|---|
parent_scene | Scene | The parent scene. |
name | str | Scene’s name. |
See Also
- module
aspose.threed
- class
Entity
- class
Scene