Skip to content

Commit e8d2a75

Browse files
author
Onur Rauf Bingol
committed
Minor updates
1 parent 7b85c40 commit e8d2a75

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

geomdl/multi.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def pdimension(self):
9999
def evalpts(self):
100100
""" Evaluated points.
101101
102-
Since there are multiple shapes contained in the multi objects, the evaluated points will be returned in the
102+
Since there are multiple geometry objects contained in the multi objects, the evaluated points will be returned in the
103103
format of list of individual evaluated points which is also a list of Cartesian coordinates.
104104
105105
The following code example illustrates these details:
@@ -108,7 +108,7 @@ def evalpts(self):
108108
:linenos:
109109
110110
multi_obj = multi.SurfaceContainer() # it can also be multi.CurveContainer()
111-
# Add shapes to multi_obj via multi_obj.add() method
111+
# Add geometries to multi_obj via multi_obj.add() method
112112
# Then, the following loop will print all the evaluated points of the Multi object
113113
for idx, mpt in enumerate(multi_obj.evalpts):
114114
print("Shape", idx+1, "contains", len(mpt), "points. These points are:")
@@ -119,7 +119,7 @@ def evalpts(self):
119119
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
120120
on using this class member.
121121
122-
:getter: Gets the evaluated points of all contained shapes
122+
:getter: Gets the evaluated points of all contained geometries
123123
"""
124124
if not self._cache['evalpts']:
125125
for elem in self._elements:
@@ -135,7 +135,7 @@ def bbox(self):
135135
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
136136
on using this class member.
137137
138-
:getter: Gets the bounding box of all contained shapes
138+
:getter: Gets the bounding box of all contained geometries
139139
"""
140140
all_box = []
141141
for elem in self._elements:
@@ -264,11 +264,11 @@ def _sample_size_setter_common(self, idx, value):
264264
self._delta[idx] = 1.0 / float(value - 1)
265265

266266
def add(self, element):
267-
""" Adds shapes to the container.
267+
""" Adds geometry objects to the container.
268268
269-
The input can be a single shape, a list of shapes or a container object.
269+
The input can be a single geometry, a list of geometry objects or a geometry container object.
270270
271-
:param element: shape to be added
271+
:param element: geometry object
272272
"""
273273
if isinstance(element, (self.__class__, list, tuple)):
274274
for elem in element:
@@ -394,13 +394,13 @@ def render(self, **kwargs):
394394
if isinstance(cpcolor, (list, tuple)):
395395
if len(cpcolor) < len(self._elements):
396396
raise ValueError("The number of color values in 'cpcolor' (" + str(len(cpcolor)) +
397-
") cannot be less than the number of shaped contained ("
397+
") cannot be less than the number of geometries contained ("
398398
+ str(len(self._elements)) + ")")
399399

400400
if isinstance(evalcolor, (list, tuple)):
401401
if len(evalcolor) < len(self._elements):
402402
raise ValueError("The number of color values in 'evalcolor' (" + str(len(evalcolor)) +
403-
") cannot be less than the number of shapes contained ("
403+
") cannot be less than the number of geometries contained ("
404404
+ str(len(self._elements)) + ")")
405405

406406
# Run the visualization component
@@ -759,13 +759,13 @@ def render(self, **kwargs):
759759
if isinstance(cpcolor, (list, tuple)):
760760
if len(cpcolor) != len(self._elements):
761761
raise ValueError("The number of colors in 'cpcolor' (" + str(len(cpcolor)) +
762-
") cannot be less than the number of shapes contained(" +
762+
") cannot be less than the number of geometries contained(" +
763763
str(len(self._elements)) + ")")
764764

765765
if isinstance(evalcolor, (list, tuple)):
766766
if len(evalcolor) != len(self._elements):
767767
raise ValueError("The number of colors in 'evalcolor' (" + str(len(evalcolor)) +
768-
") cannot be less than the number of shapes contained ("
768+
") cannot be less than the number of geometries contained ("
769769
+ str(len(self._elements)) + ")")
770770

771771
# Get colormaps as a list
@@ -1026,13 +1026,13 @@ def render(self, **kwargs):
10261026
if isinstance(cpcolor, (list, tuple)):
10271027
if len(cpcolor) != len(self._elements):
10281028
raise ValueError("The number of colors in 'cpcolor' (" + str(len(cpcolor)) +
1029-
") cannot be less than the number of shapes contained(" +
1029+
") cannot be less than the number of geometries contained(" +
10301030
str(len(self._elements)) + ")")
10311031

10321032
if isinstance(evalcolor, (list, tuple)):
10331033
if len(evalcolor) != len(self._elements):
10341034
raise ValueError("The number of colors in 'evalcolor' (" + str(len(evalcolor)) +
1035-
") cannot be less than the number of shapes contained ("
1035+
") cannot be less than the number of geometries contained ("
10361036
+ str(len(self._elements)) + ")")
10371037

10381038
# Run the visualization component
@@ -1084,7 +1084,7 @@ def select_color(cpcolor, evalcolor, idx=0):
10841084
:type cpcolor: str, list, tuple
10851085
:param evalcolor: color for evaluated points grid item
10861086
:type evalcolor: str, list, tuple
1087-
:param idx: index of the current shape
1087+
:param idx: index of the current geometry object
10881088
:type idx: int
10891089
:return: a list of color values
10901090
:rtype: list

0 commit comments

Comments
 (0)