We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b0db9 commit ef8cc31Copy full SHA for ef8cc31
src/ansys/geometry/core/shapes/curves/nurbs.py
@@ -115,7 +115,9 @@ def length(self, num_points: int = None) -> Real:
115
"""
116
if num_points is None:
117
num_spans = len(self._nurbs_curve.knotvector) - (2 * self._nurbs_curve.degree) - 1
118
- num_points = max(num_spans * 10, 50) # 10 samples per span, floor of 50 ensures accuracy
+ num_points = max(
119
+ num_spans * 10, 50
120
+ ) # 10 samples per span, floor of 50 ensures accuracy
121
122
self._nurbs_curve.sample_size = num_points
123
0 commit comments