Grasshopper

algorithmic modeling for Rhino

Hi, 

I have one question about Interpolate Curves,,,

 

The  attached image shows the generated Curve using grasshopper's 'IntCrv' component (line shown in red) is different to what was made using Rhino's command 'InterpCrv' manually(white line).

We had one need to make the rhino-InterpCrv curve in grasshopper.

One thing I've tried is using a python script to emulate the rhino-InterpCrv, but didn't get any results,since I didn't know how to define the arrCV1 and arrCVn1 when using the 'AddInterpCurve (knotstyle=1/2)'

 

knotstyle from the rhino IronPython help

knotstyle

Optional. Number. The knot style to use, and whether the curve should be periodic. If omitted, uniform knots (0) are created.

Value

Description

0

Uniform knots. Parameter spacing between consecutive knots is 1.0.

1

Chord length spacing. Requires dblDegree = 3 with arrCV1 and arrCVn1 specified.

2

Sqrt (chord length). Requires dblDegree = 3 with arrCV1 and arrCVn1 specified.

3

Periodic with uniform spacing.

4

Periodic with chord length spacing. Requires an odd degree value.

5

Periodic with sqrt (chord length) spacing. Requires an odd degree value.

 

did anyone tried to create a curve like native Rhino from script? or, is there a another GH component that is suitable for smooth curves?

I guess a alternative way will be using rs.Command('InterpCrv'), but wanted to know if there will be a smarter way...

Views: 1839

Attachments:

Replies to This Discussion

Hi Yasushi,

 

see if the attached makes any sense. You'll need 0.8.0050 to open the file.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

Thanks David!

 

The sample works fine, meeting my desires!

The new 0.80050 interface is nice too.

Thanks Staffan,

I added it to the bug tracker and will have a look at this.

- Giulio
_______________
giulio@mcneel.com

Hi Staffan,

This should be fixed in the next beta.

 

Thanks,

-Steve

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service