Paneling Tools: Gh Surface Domain Length Bug

Here is another go at it with a tolerance added. I hope this helps.
DivideDistance_RI_C#_withTolerance.gh (24.3 KB)
image

2 Likes

Hi , Rajaa

You are a real lifesaver :smiley: Thank you so much. It works on my case. I hope it’s generalizable with other cases but this does the job. I’m curious about updates for Paneling tools. When could this feature be included? Also, does Paneling Tools have a scheduled update soon? Once again, thank you for being so helpful and patient with me.

Just an update. It works, but it still has some issues with very small surfaces. Need not worry, I’ll just cull those. Hopefully the next patch would solve the problem of very small surfaces :smiley:

Glad it worked.
I’d like to see a simple example showing the small surfaces you get and what you expect instead. For example a face with overall area of < tolerance be deleted? Or maybe rather merge with adjacent faces?

Hi, Rajaa

Thanks again for the script. I’ve tested the custom component many times and I’ve encountered weird problems where it would work fine but when I would play with the lengths, especially when I set larger values, the script stops working and creates incomplete grid points. Also it would work fine for one surface but would fail with a similar, sometimes copied, surfaces. Unfortunately I can’t upload my cases right now. Maybe you can test it multiple times with multiple surfaces and then debug.

Hi, Rajaa

I’m happy to say that I’ve solved my problem with a custom script. It’s really a different feeling when using clustering for the first time. It’s much more organized now. So far it does everything I wanted and I’ve tested it multiple times with various quadrilateral surfaces. Unfortunately I’m still in the process of learning C# - So as a request can you test the script for bugs and give tips on how to improve it, moreover apply it in Code? I hope my script can clearly explain what I’m trying to achieve and be somehow applied to Paneling Tools.

Thank you.

EDIT: Updated Script

Hi, I cleaned a few bugs.

1. Dvide Surface By Length.gh (106.8 KB)

I’ll add your request to the PT project to make the improvement.
As for your code, I was not able to quickly run it due to different plugins you use, but if you can isolate the bug or the case where it does not work in a simple example, then I’ll be happy to check it.

@attheeast18
This issue should now be fixed in Today’s release of PanelingTools (March, 3, 2021). Please get the latest version from the PackageManager. Let me know if it works as expected.

1 Like

Hi @rajaa, I tried it and it works well however it’s a little different to what I was saying. Still, this would be quite handy in dividing surfaces. What I was going for was - if the dividing number was bigger than any length of the actual surface then it should only create the border points or lines. The best way I could put it is to imagine a 1x1 hole you need to close, so if you have a 2x2 surface to close it, then naturally you would cut the 2x2 surface with the borders of the 1x1 hole, so the points should only be at the borders if the divisor is bigger than the actual surface. This way it’s closer to realistic fabrication rules. I’ve uploaded a script showing the difference. Thank you.

1. Dvide Surface By Length jjj.gh (116.8 KB)

Can you please internalize your input surface.
Also please share a screenshot showing the difference? There are many plugins involved, and it helps to see an image of the results you are comparing. Thanks