Skip to content

Commit 02bb249

Browse files
authored
Merge pull request #1099 from compas-dev/bugfix/nurbs_points
Bugfix/nurbs points
2 parents 5263ced + 3f05a17 commit 02bb249

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Fixed strange point values in RhinoNurbsCurve caused by conversion `ControlPoint` to COMPAS instead of `ControlPoint.Location`.
15+
1416
### Removed
1517

1618

src/compas_rhino/geometry/curves/nurbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def data(self, data):
121121
@property
122122
def points(self):
123123
if self.rhino_curve:
124-
return [point_to_compas(point) for point in self.rhino_curve.Points]
124+
return [point_to_compas(point.Location) for point in self.rhino_curve.Points]
125125

126126
@property
127127
def weights(self):

0 commit comments

Comments
 (0)