Skip to content

Commit 257e6c5

Browse files
committed
compas.scene
1 parent 1e6e992 commit 257e6c5

10 files changed

Lines changed: 2 additions & 58 deletions

File tree

src/compas/scene/__init__.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
Every item type is paired with a corresponding scene object type that is capable of visualizing the data of the object.
44
The scene objects are implemented as pluggables, and automatically switch between plugins depending on the contexct in which they are used.
55
"""
6-
7-
from __future__ import print_function
8-
from __future__ import absolute_import
9-
from __future__ import division
6+
# ruff: noqa: F401
107

118
from .exceptions import SceneObjectNotRegisteredError
129
from .sceneobject import SceneObject
@@ -38,21 +35,3 @@ def register_scene_objects_base():
3835
register(Mesh, MeshObject, context=None)
3936
register(Graph, GraphObject, context=None)
4037
register(VolMesh, VolMeshObject, context=None)
41-
42-
43-
__all__ = [
44-
"SceneObjectNotRegisteredError",
45-
"SceneObject",
46-
"MeshObject",
47-
"GraphObject",
48-
"GeometryObject",
49-
"VolMeshObject",
50-
"Scene",
51-
"clear",
52-
"before_draw",
53-
"after_draw",
54-
"register_scene_objects",
55-
"get_sceneobject_cls",
56-
"register",
57-
"Group",
58-
]

src/compas/scene/descriptors/colordict.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import compas
1+
from collections.abc import Mapping
22

3-
if compas.PY2:
4-
from collections import Mapping
5-
else:
6-
from collections.abc import Mapping
73
from compas.colors.colordict import ColorDict
84

95

src/compas/scene/descriptors/protocol.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
5-
61
class DescriptorProtocol(type):
72
"""Meta class to provide support for the descriptor protocol in Python versions lower than 3.6"""
83

src/compas/scene/exceptions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
5-
61
class SceneObjectNotRegisteredError(Exception):
72
"""Exception that is raised when no scene object is registered for a given data type."""

src/compas/scene/geometryobject.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
51
import compas.colors # noqa: F401
62
import compas.geometry # noqa: F401
73

src/compas/scene/graphobject.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
51
import compas.colors # noqa: F401
62
import compas.datastructures # noqa: F401
73
import compas.geometry # noqa: F401

src/compas/scene/group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import compas.data # noqa: F401
32

43
from .sceneobject import SceneObject

src/compas/scene/meshobject.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
51
import compas.colors # noqa: F401
62
import compas.datastructures # noqa: F401
73
import compas.geometry # noqa: F401

src/compas/scene/sceneobject.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
51
from functools import reduce
62
from operator import mul
73

src/compas/scene/volmeshobject.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
51
import compas.colors # noqa: F401
62
import compas.datastructures # noqa: F401
73
import compas.geometry # noqa: F401

0 commit comments

Comments
 (0)