V-Notch to Point

Hello, I am still relatively new to Rhino (around a year of usage). My company deals with upholstery, and I am trying to create a Grasshopper command or a macro that simplifies this process.

My company is currently integrating another company, and we are taking on their files, which were a mess. The issue arose after realizing they don’t follow our method, and the integration method has become rather tedious.

I will provide pictures, for example:

This is the file before processing.

This is the file post-processing:

This takes roughly 10 minutes per part, and there are over 500 parts to integrate. The main concern is the V-notch (seen here).

The prior company used these to aid in assembling upholstery, which I have to put a line matching the border, then place a point on the intersection between the point and the newly created line, then explode and delete the notch itself. Is there a command or macro that would aid?

Thank you in advance!

use the grasshopper tag please

Do you plan on sharing an example file/object? :cowboy_hat_face:

Yes, I can share a file example of what I am working with.

file for share.3dm (54.8 KB)

1 Like

Thanks - now, regarding this step:

Is the point relevant? Is it to keep the same amount of segments?

The prior company used V-notches to align the fabrics, my company uses flat punches to connect, so we need to fix the fabric outline, then add the punch at the peak of the notch, but in the flat punch, which is where the line comes into play, so there’s less likely error of misplacing the punch point, I’ve also experimented with adding a line at the bottom from left to right of the V-notch. Then adding a midpoint to reference for the point, this seems to work well so far.

1 Like

Thanks for clarifying.
I can’t say I grasp the problem 100% - which is probably 100% my fault haha.
Can you provide a quick image of your ideal result?
I was thinking of a few things.
First lazy thought was to join the lines, smooth the resulting polyline (‘v’ vertices slide less), collide with original lines, go from there:

The second slightly less lazy approach is to use the convex hull?

Both examples here:

DisplaceVs_a&b.gh (36.6 KB)

Sorry I know you’ve already provided screenshots - I meant more like a zoomed in image of your ideal V-notch-to-point result.

Sorry, I believe there may be a miscommunication, I want to completely remove the V- notch, then fill the empty space with a straight line and a point at the mid point, which will then be changed to a different layer for our gerber machine to use

1 Like

Did you check the grasshopper file I shared?

In essence, it separates the V-notch lines from the rest, then forms a line in the spaces that are left between the rest of the segments. Each one of these newly-formed lines has a midpoint. At the end, your line count is the same.

*Edit:

If this is literal, then I get it’s a single line + a point placed at the middle (this point is a floating point on the line, not a control point); here’s the updated file:

DisplaceVs_c.gh (30.1 KB)


I guess I called this version ‘C’, but it’s really just version ‘B’ reused to dispatch the V-notch lines. It’d be cool to test with other candidate line groups you have.
Best,
RC

Hi @Velich I share your pain, we often see files like this where people have not followed the standards, it can indeed be very tedious to repair.

Our firm produces CNC cutting machines for your industry and we have a Rhino Plugin called ZebraCut which has tools to specificially solve this and many other CNC file preparation challenges. We also have industrial nesting integrated natively within Rhino.

Specificially we have a Notch Detection tool which detects 9 types of Notch and a Notch Creation Tool which creates them. Full details are here ZebraCut Prepare - Notches - YouTube

Here we detect your notches, placing points where they are found and repairing the shape.

We can then transform them into a different type of notch (line notches in this case).

file for share- ZebraCut.3dm (94.4 KB)

Feel free to direct message me if you’d like to find out more or arrange a trial license.

We can also import Gerber RS274-D ISO files directly into Rhino if that helps.

1 Like