Simplify curve issue

Hi everyone
Im a new user of rihno 8 and grashooper.

Problem:
Some boundary curves were generated from the sides of a box as a result of a surface offset operation. I now need to simplify these curves into polylines (degree-1 curves) containing only the corner vertices. I tried using the Simplify command and increasing both the tolerance and angle values. While some redundant vertices are removed, others remain, even though they appear to be collinear. Why aren’t all of the collinear vertices being removed?

left oryginal frame , middle - converted to poly and reduce, right simplify curve
there are still some vertices next to corners

simplify issue.3dm (360.7 KB)

This Grasshopper script is intended to generate a custom waffle-structure cage with additional alignment pins used for accurate positioning of the side plywood sheets. Each plywood panel edge must be annotated with the required cutting angle for fabrication.
The input geometry is an envelope box. I need to offset this geometry to create space for the plywood thickness and then generate the shapes of all plywood panels.

STboxy.gh (72.4 KB)

I identified the corresponding surfaces and oriented them in the Top view. The next step is to find the matching edges and use RuleSrf to generate the side surfaces for all panels.

I would appreciate any help.

Happy to help you, but…
your .gh file is loaded with plugins. (I do not want to install).
Please upload the part where your question is about, just internalize the objects before the section you want us to look at, so I can work without the plugins.

Regards, Eef

To simplify curves.

If I understand what you mean correctly.

However, there are two non-planar surfaces that need to be fixed.

Thanks a lot! When I see your script and how simple the solution is, one persistent thought comes to mind: I still have a long journey ahead of me and a lot to learn. It occurs to me that this small problem is just the tip of an iceberg I didn’t even know existed. :slightly_smiling_face:

Great, that’s one problem out of the way! Thanks!

[Edit] With more complex geometry, the script sometimes produces unexpected results.
My question is: in the provided example, the geometry was created using the Shell command, so all boundary edges appear to be well organized and each edge has a clear corresponding counterpart. However, what if I select two boundaries that were modeled separately?

Would it make sense to perform a distance test and, for each edge, search for the best matching edge on the other boundary?