BHoM / Rhinoceros_Toolkit

Set of functionalities for communication with Rhinoceros
GNU Lesser General Public License v3.0
6 stars 3 forks source link

RandomPolyline returns a list of Points instead of a Polyline #206

Closed LMarkowski closed 9 months ago

LMarkowski commented 3 years ago

Description:

As in header. Maybe it is an expected behaviour given it works on Rhino.Geometry objects, not BH.oM, but to me it's a bit confusing. image

Steps to reproduce:

Place BH.Engine.Rhinoceros.RandomPolyline(int seed) component on the canvas.

Expected behaviour:

Returning polyline.

Test file(s):

SharePoint

FraserGreenroyd commented 9 months ago

Investigating the code for this issue during historic issue clean up, and it appears that the returned Polyline from the random method is a Rhino Polyline object, rather than a BHoM Polyline object. Thus the display in Grasshopper will be how it wants to display a Rhino Polyline.

Plugging the output into a BHoMGeometry component should convert it to a BHoM Polyline and display appropriately.

Thus I'm closing this issue as not needed for now based on that 😄