Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Changed name of YAK package from `bluejay` to `compas`.
* Fixed broken `scaled()` method in `Sphere`, `Cylinder`, and `Capsule` classes by overriding to accept uniform scaling factor.
* Fixed bug in `compas.geometry.PlanarSurface`.
* Fixed bug in `Curve.offset()` in `compas_rhino`.

### Removed

Expand Down
5 changes: 4 additions & 1 deletion src/compas_rhino/geometry/curves/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from __future__ import division
from __future__ import print_function

import Rhino.Geometry # type: ignore

from compas.geometry import Curve
from compas.geometry import Plane
from compas_rhino.conversions import box_to_compas
Expand Down Expand Up @@ -393,7 +395,8 @@ def offset(self, distance, direction, tolerance=1e-3):
point = self.point_at(self.domain[0]) # type: ignore
plane = Plane(point, direction)
plane = plane_to_rhino(plane)
self.native_curve = self.native_curve.Offset(plane, distance, tolerance, 0)[0] # type: ignore
offset_style = Rhino.Geometry.CurveOffsetCornerStyle.NONE
self.native_curve = self.native_curve.Offset(plane, distance, tolerance, offset_style)[0] # type: ignore

def smooth(self):
raise NotImplementedError
Expand Down
Loading