Skip to content

Geometry_Engine: Offset polyLine not working as expected  #3235

Closed
@KalleEdstroem

Description

@KalleEdstroem

Description:

Used offset method on a PolyLine object.
Which created a "dent" in the PolyLine output.

offset issue

Problems occurs in this method:

public static Polyline Offset(this Polyline curve, double offset, Vector normal = null, bool tangentExtensions = false, double tolerance = Tolerance.Distance)

Steps to reproduce:

Test script shows issue.

Expected behaviour:

Expected behavior is that the offset output keeps the same shape as the input. Behavs same as the Rhino version of offset shown in testscript.

Test file(s):

https://burohappold.sharepoint.com/sites/BHoM/02_Current/Forms/AllItems.aspx?id=%2Fsites%2FBHoM%2F02%5FCurrent%2F12%5FScripts%2F01%5FIssue%2FBHoM%2FBHoM%5FEngine%2FGeometry%5FEngine%2F%233235%2DOffsetProducingDentICurve%2Egh&viewid=a5a93cba%2Dfcca%2D46cc%2Da31a%2D80b8d5cbfd7b&parent=%2Fsites%2FBHoM%2F02%5FCurrent%2F12%5FScripts%2F01%5FIssue%2FBHoM%2FBHoM%5FEngine%2FGeometry%5FEngine

Metadata

Metadata

Labels

type:bugError or unexpected behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions