I’ve been trying to make use of the HiddenLine class from RhinoCommon, to try to recreate the Make2D (Grasshopper) component.
I happen to get a few extra lines (geometry) from my code, which is not the case when I use the default Make2D component. Can someone let me know what I’ve missed?
Also, why is it that the python version-that only creates one type of lines(visible)- slower than the native component-that creates both visible and hidden_lines? Is this a Python vs C# issue?
I’m building my code based on this reference.
File: 2020.12.09 - Make2D Cleanup.gh (121.5 KB)
EDIT: I tried to SolidUnion the input Geometry before passing it to the Python, and the extra lines disappear only if the Union is successful (i.e. if the outcome is a single geometry). But, doesn’t work for nearly-but-not intersecting geometries.
~ ~ ~ ~ ~ ~ ~ ~