@@ -99,7 +99,7 @@ def pdimension(self):
99
99
def evalpts (self ):
100
100
""" Evaluated points.
101
101
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
103
103
format of list of individual evaluated points which is also a list of Cartesian coordinates.
104
104
105
105
The following code example illustrates these details:
@@ -108,7 +108,7 @@ def evalpts(self):
108
108
:linenos:
109
109
110
110
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
112
112
# Then, the following loop will print all the evaluated points of the Multi object
113
113
for idx, mpt in enumerate(multi_obj.evalpts):
114
114
print("Shape", idx+1, "contains", len(mpt), "points. These points are:")
@@ -119,7 +119,7 @@ def evalpts(self):
119
119
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
120
120
on using this class member.
121
121
122
- :getter: Gets the evaluated points of all contained shapes
122
+ :getter: Gets the evaluated points of all contained geometries
123
123
"""
124
124
if not self ._cache ['evalpts' ]:
125
125
for elem in self ._elements :
@@ -135,7 +135,7 @@ def bbox(self):
135
135
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
136
136
on using this class member.
137
137
138
- :getter: Gets the bounding box of all contained shapes
138
+ :getter: Gets the bounding box of all contained geometries
139
139
"""
140
140
all_box = []
141
141
for elem in self ._elements :
@@ -264,11 +264,11 @@ def _sample_size_setter_common(self, idx, value):
264
264
self ._delta [idx ] = 1.0 / float (value - 1 )
265
265
266
266
def add (self , element ):
267
- """ Adds shapes to the container.
267
+ """ Adds geometry objects to the container.
268
268
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.
270
270
271
- :param element: shape to be added
271
+ :param element: geometry object
272
272
"""
273
273
if isinstance (element , (self .__class__ , list , tuple )):
274
274
for elem in element :
@@ -394,13 +394,13 @@ def render(self, **kwargs):
394
394
if isinstance (cpcolor , (list , tuple )):
395
395
if len (cpcolor ) < len (self ._elements ):
396
396
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 ("
398
398
+ str (len (self ._elements )) + ")" )
399
399
400
400
if isinstance (evalcolor , (list , tuple )):
401
401
if len (evalcolor ) < len (self ._elements ):
402
402
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 ("
404
404
+ str (len (self ._elements )) + ")" )
405
405
406
406
# Run the visualization component
@@ -759,13 +759,13 @@ def render(self, **kwargs):
759
759
if isinstance (cpcolor , (list , tuple )):
760
760
if len (cpcolor ) != len (self ._elements ):
761
761
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(" +
763
763
str (len (self ._elements )) + ")" )
764
764
765
765
if isinstance (evalcolor , (list , tuple )):
766
766
if len (evalcolor ) != len (self ._elements ):
767
767
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 ("
769
769
+ str (len (self ._elements )) + ")" )
770
770
771
771
# Get colormaps as a list
@@ -1026,13 +1026,13 @@ def render(self, **kwargs):
1026
1026
if isinstance (cpcolor , (list , tuple )):
1027
1027
if len (cpcolor ) != len (self ._elements ):
1028
1028
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(" +
1030
1030
str (len (self ._elements )) + ")" )
1031
1031
1032
1032
if isinstance (evalcolor , (list , tuple )):
1033
1033
if len (evalcolor ) != len (self ._elements ):
1034
1034
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 ("
1036
1036
+ str (len (self ._elements )) + ")" )
1037
1037
1038
1038
# Run the visualization component
@@ -1084,7 +1084,7 @@ def select_color(cpcolor, evalcolor, idx=0):
1084
1084
:type cpcolor: str, list, tuple
1085
1085
:param evalcolor: color for evaluated points grid item
1086
1086
:type evalcolor: str, list, tuple
1087
- :param idx: index of the current shape
1087
+ :param idx: index of the current geometry object
1088
1088
:type idx: int
1089
1089
:return: a list of color values
1090
1090
:rtype: list
0 commit comments