|
10 | 10 | import copy
|
11 | 11 | import abc
|
12 | 12 | from .exceptions import GeomdlException
|
13 |
| -from ._utilities import add_metaclass, export |
| 13 | +from . import _utilities as utl |
14 | 14 |
|
15 | 15 |
|
16 |
| -@add_metaclass(abc.ABCMeta) |
| 16 | +@utl.add_metaclass(abc.ABCMeta) |
17 | 17 | class AbstractEntity(object):
|
18 | 18 | """ Abstract base class for all geometric entities. """
|
19 | 19 | def __init__(self, *args, **kwargs):
|
@@ -173,7 +173,7 @@ def opt_get(self, value):
|
173 | 173 | return None
|
174 | 174 |
|
175 | 175 |
|
176 |
| -@export |
| 176 | +@utl.export |
177 | 177 | class Vertex(AbstractEntity):
|
178 | 178 | """ 3-dimensional Vertex entity with spatial and parametric position. """
|
179 | 179 | def __init__(self, *args, **kwargs):
|
@@ -378,7 +378,7 @@ def data(self, value):
|
378 | 378 | self._data = [float(val) for val in value]
|
379 | 379 |
|
380 | 380 |
|
381 |
| -@export |
| 381 | +@utl.export |
382 | 382 | class Triangle(AbstractEntity):
|
383 | 383 | """ Triangle entity which represents a triangle composed of vertices.
|
384 | 384 |
|
@@ -489,7 +489,7 @@ def add_vertex(self, *args):
|
489 | 489 | self._data = res
|
490 | 490 |
|
491 | 491 |
|
492 |
| -@export |
| 492 | +@utl.export |
493 | 493 | class Quad(AbstractEntity):
|
494 | 494 | """ Quad entity which represents a quadrilateral structure composed of vertices.
|
495 | 495 |
|
@@ -544,7 +544,7 @@ def add_vertex(self, *args):
|
544 | 544 | self._data = res
|
545 | 545 |
|
546 | 546 |
|
547 |
| -@export |
| 547 | +@utl.export |
548 | 548 | class Face(AbstractEntity):
|
549 | 549 | """ Representation of Face entity which is composed of triangles or quads. """
|
550 | 550 | def __init__(self, *args, **kwargs):
|
@@ -579,7 +579,7 @@ def add_triangle(self, *args):
|
579 | 579 | self._data = res
|
580 | 580 |
|
581 | 581 |
|
582 |
| -@export |
| 582 | +@utl.export |
583 | 583 | class Body(AbstractEntity):
|
584 | 584 | """ Representation of Body entity which is composed of faces. """
|
585 | 585 | def __init__(self, *args, **kwargs):
|
|
0 commit comments