Rebuild curves parakeet

Hi all,

I created some patterns using parakeet

When applying Polyline Offset (Clipper component)

I get curves with 70k+ segments(/control points) in total…

What would be the best way to reduce the number of control points/segments here? Reducing the tolerance on polylineoffset leads to jagged lines. Simplifycrv doesn’t really seem to do the trick.

With larger panels and extrusions, file size quickly becomes unmanageable…

Thanks!

Have you tried FitCrv?

Since it’s a repeatable pattern, maybe finish doing your operations on a single cell before arraying it?

Hi, thanks for the tip. I tried reducepolyline to similar effect. It is an option, decreasing the number of segments by around 20%…

I wondered whether it was possible to rebuild the curves as the original nurbs as they were before applying polylineoffset. That would reduce the amount of segments enormously…

Thanks again!

Ok, so this is really a problem. The pattern evolves, so it is not a repeatable pattern.

I end up with a panel of curves with over 0.5 million control points…Creating a planarsrf and Srfoffset to create thickness takes a long time. Rendering it seems impossible, I cannot get past the ‘creating meshes’ phase…

My hardware is not the best, a laptop with an Nvidia GPU (GT 1650). First time I encounter such difficulties though…

Any help would be greatly appreciated…

Perhaps it would be helpful to post a file - and to describe what your final goal is, that would greatly affect what kind of strategy is most useful

Of course, you are right, my apologies.

I added the internalized geometry in attachment.

Kind regards,

Polyline_Offset_Problem.gh (121.5 KB)

Not sure why you were using PolylineOffset?


Polyline_Offset_Problem.gh (130.0 KB)

Hmmm, because this is the way to get correct geometry, i.e with curves and holes?

vs

Thanks!

Mmm… and it only costs you 112,000 redundant curves…

If you just said from the start what you need, we could have finished solving it by now - sometimes folks get so attached to their next step that they forget there’s 50 ways to solve a problem - you asked for clean curves, you got them… sounds like that wasn’t really your focus

Be careful what you wish for, you might just get it.

Hi, apologies for being unclear about my purposes. Definitely not wanted to waste anyone’s time.

I was indeed focused on using polyline offset and then ‘rebuilding’ the curves one way or another , as it delivers the solution I need, but with the unlucky side effect of way too many curves (if I understand this correctly: NURBS curve being converted to a polyline, resulting in way, way more segments to approximate arcs). I imagine that there are other approaches, and I am indeed probably too focused on this approach.

The second image is as such indeed what I would need: an offset of curves created with parakeet, with thickness and ‘cleaned up’ continous curves which are fit for laser cutting.

I guess it would be possible to trim the unwanted ends of the curves created using your method as you outlined before.

Sorry for the inconvenience…

Hello
I didn’t read all the thread so excuse me if it is not useful.
I used my Nautilus plugin.
Converting polylines to Arcs and Lines could reduce the number of curves. Reduction by 7.


Polyline_Offset_Problem.gh (126.2 KB)

1 Like

That is exactly what I was looking for…Many, many thanks!

EDIT: it certainly was an answer to my original question as in how to reduce the number of segments/control points.

Unfortunately, it turns out that this is not the main cause for the bad performance, the model is still large (120mb when converted to a planar srf) and thus very resource hungry. I assume it is a hardware thing and patience is required…

Many thanks for all your help!

You can try to convert to mesh.
Use my tool Region to mesh or the link there
Nautilus plugin - #55 by laurent_delrieu
Use the polylines not the arcs and line

Clipper2.
Just a comparison.

1 Like

Hi Laurent,

I cannot find the ‘region to mesh’ component in Nautilus (I just updated throug package manager).

But great that you developed such a tool!

Kind regards

I am a bit surprised, but I quite never install the release I send as I use the development folder.
Just to be sure did you see this. The 0.9.4 ?


In red the new components

If not I can send the tool by PM

It gives that with your polyline. It is fast.

Nice Pattern

1 Like

Hi Laurent,

→ different layout, and I do not see an image section…

I restarted Rhino several times and checked the plugin folder, but no changes.

Thanks again,

I surely messed up !!! I try to correct it now.
It must be good now! 0.9.4.1

1 Like

Works like a charm! What a difference in performance…I’m saved :slight_smile: !

Thank you very much!

1 Like