BHoM / Revit_Toolkit

A set of tools enabling exchange of information between BHoM and Revit.
GNU Lesser General Public License v3.0
27 stars 13 forks source link

Surface conversion error on open curve loops #1462

Closed vietle-bh closed 5 months ago

vietle-bh commented 5 months ago

Description:

When converting some very complex curve loops to Bhom planar surfaces, this method raised an error:

The curve loop is open or consists of a single unbound curve; counterclockwise determination has no meaning.

The API docs clearly shows that this occurred in the IsCounterclockwise call:

image

Steps to reproduce:

Expected behaviour:

For open curve loops, find the main external boundary using areas instead.

Test file(s):