Skip to content

Commit aa39cd2

Browse files
committed
self not None
1 parent 6ce01dc commit aa39cd2

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

src/compas/geometry/__init__.py

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@
9292
Translation
9393
9494
95+
Curves
96+
------
97+
98+
.. autosummary::
99+
:toctree: generated/
100+
:nosignatures:
101+
102+
Curve
103+
NurbsCurve
104+
105+
106+
Surfaces
107+
--------
108+
109+
.. autosummary::
110+
:toctree: generated/
111+
:nosignatures:
112+
113+
Surface
114+
NurbsSurface
115+
116+
95117
Functions
96118
=========
97119
@@ -948,6 +970,16 @@
948970
PointCollectionNumpy
949971
)
950972

973+
from .curves import (
974+
Curve,
975+
NurbsCurve
976+
)
977+
978+
from .surfaces import (
979+
Surface,
980+
NurbsSurface
981+
)
982+
951983
__all__ = [
952984
'close',
953985
'allclose',
@@ -1250,6 +1282,12 @@
12501282

12511283
'Collection',
12521284
'PointCollection',
1285+
1286+
'Curve',
1287+
'NurbsCurve',
1288+
1289+
'Surface',
1290+
'NurbsSurface'
12531291
]
12541292

12551293
if not compas.IPY:
@@ -1275,5 +1313,5 @@
12751313
'delaunay_from_points_numpy',
12761314
'voronoi_from_points_numpy',
12771315
'CollectionNumpy',
1278-
'PointCollectionNumpy'
1316+
'PointCollectionNumpy',
12791317
]

src/compas/geometry/curves/nurbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __new__(cls, *args, **kwargs):
9696
return new_nurbscurve(cls, *args, **kwargs)
9797

9898
def __init__(self, name=None):
99-
super(NurbsCurve, None).__init__(name=name)
99+
super(NurbsCurve, self).__init__(name=name)
100100

101101
def __eq__(self, other):
102102
raise NotImplementedError

src/compas/geometry/surfaces/nurbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __new__(cls, *args, **kwargs):
9595
return new_nurbssurface(cls, *args, **kwargs)
9696

9797
def __init__(self, name=None):
98-
super(NurbsSurface, None).__init__(name=name)
98+
super(NurbsSurface, self).__init__(name=name)
9999
self._points = None
100100

101101
def __eq__(self, other):

0 commit comments

Comments
 (0)