Rhino BETA Feature: Elmo. A new Rebuild command for Curves

Hey @pastrana, I ran into a brick wall with some fonts and tried the WIP. Elmo on curves is pretty awesome, but the polycurve/kinky workflow has some issues. Here are a couple of thoughts after spending yesterday afternoon with Elmo:

1/2 is a line (degree one with two control points), 3/4 is a single-span degree three curve, etc.

  • Please make PointCount a default option, i.e., GetOption.AcceptNumber(min, max);. It’s tedious to constantly switch from mouse to KB.
    image

  • PointCount should work more like _RebuildCrvNonUniform, splitting into a RequestedTolerance, MaxPointCount, and MaxDegree (1/2 stays 1/2):

image

  • The command starts with the previous total PointCount, which is arbitrary. What’s necessary for a polycurve with 15 segments is overkill for one with two segments:
    • If we can’t have RequestedTolerance, could we at least switch PointCount to MaxPointCount per segment?
      • PointCount=50 is meaningless over 15 segments. After the command finishes, _What tells me the segments range from 3/4 to 3/7, but I’m in the dark while the command is running (the preview with overlapping sets of CPs are impossible to count):
      • A MaxPointCount=5 Deg=3 would tell me I have at most two spans per segment.
  • It appears to allocate the 'PointCount` based on the segment with the most deviation, but it also increases the complexity of segments (1/2 and 2/3) that don’t require any refinement.

FYI, my painful workflow for _TextObject since Rhino v4:

  1. Explode the output.
  2. SplitKinks manually, calling _Join on desired segments.
  3. Select all curves and polycurves and run them through _RebuildCrvNonUniform. My goal is a low, ‘editable’ point count.
  4. _Join everything back together.
  5. CP edit to match original font shape.
  6. ! _ExtrudeCrvTapered and CP edit till it works (fails for narrow areas).

Many times is good to keep just the straight segments on, block the curved segments, and use _BlendCrv to create good transitions, and _EndBulge for further adjustments.
I also use some temporal lines to create clean blends with history.
VSR had a good workflow for this kind of processes, anyway Elmo is great! I would love to have a dedicated panel with sliders too.

I haven’t tried Elmo yet, does it have the option to set the distance of control points instead of its amount?

Even normally in grasshopper, I prefer diving a curve length by my “module” distance to obtain the wanted control point count.

One might care more about the “level of detail” of a curve by determining the density of control points.

Yes, it’s under PrettyPolygon.

PrettyPolygon=No

PrettyPolygon=Yes EqualizeSegmentsStrength=High

Yes. Combine this with _Joincopy, and you can preserve those segments and the _BlendCrv history while using the combined polycurve as input to another command.

:open_mouth:

:100: :sweat_smile:

:100: :rofl:

Has this case been closed? A few enhancements would be great:

  • Allow for multiple curve input
  • Since it would not make much sense to have the PointCount fixed for many curves with different length, could there be a lenght-dependent PointCount option, please?
  • Or, better, some maximum deviation param?

My use case are topo height lines.
Before:
image

After elmofication:
image

It’s tedious to have to go through all lines one-by-one, and estimate the point count.

Anyway, Elmo is of great help here! Precision is not important, since I’m doint this for graphical reasons only.

Thanks!

It would be nice if _Elmo could display point and degree count for the input curve like the default _Rebuild command does, as well as the resulting span count.

Thanks @EricM , @Eugen @AMG for your input

RH-83822 Elmo: make point count default option

RH-83823 Elmo: rebuild based on deviation

RH-83824 Elmo: MaxPointCount per segment

RH-83825 Elmo: allow multiple curves as input

See YT 83823

RH-83826 Elmo: show input curve point count and degree

This is an ugly curve:
2024-10-11_Elmo_Kink.3dm (839.9 KB)

The SplitAtKinks option doesn’t split, I tried several angle settings.

I can open the curve at the corner manually, but I think Elmo could handle the kink.

Also the straight parts of the original curve become wavy.
The more points the more wavy.


(9.0.24282.12305, 2024-10-08)

That looks like a bug, Charles – Elmo detects the kink, but does not know what to do with it. This seems to be the case when there is only 1 kink in a closed curve.

Regarding the waviness: activating the SplitAtKinks and CurvatureDiscontinuities would insert a kink where the straight segments transition into an arch. That would help removing the waviness in the straight segments you mention. However, CurvatureDiscontinuities detection is only available for curves with degree > 2, not on polylines. Elmo would need to be extended to support polylines for this type of job.

Thanks for the report!

Could this command please be added to the “New in V9” toolbar for the next WIP? I keep forgetting the name and keep having to search this forum for it. :sweat_smile:

(Also, it’s a long thread but has there been any comment whether this will be applied to rebuilding of surfaces in the future too?)

In principle, there will be no new command for rebuild eventually.

That’s the plan, yes

Hello Gijs, will Elmo be available in Grasshopper as “rebuild curve” also?

yes it will be

Thank you for your quick reply!

Grasshopper 1 also?

yes, certainly. Keep in mind that all that is in Grasshopper is there because it was added to RhinoCommon. So anything that is available in there is in principle available in Grasshopper as well. Elmo is an enhancement to Rebuild. Rebuild is in RhinoCommon

Great, thank you!

In the latest wip Elmo is missing pretty polygon and the deviation is showing incorrectly for me (it’s reporting 24mm but is actually 1.3mm when measured by CrvDeviation after the rebuild.

Thanks for trying the latest WIP - can you please share a 3dm file with the curve you were rebuilding, the rebuilt result from Elmo and the command parameters you used to get the result.