Grasshopper

algorithmic modeling for Rhino

hey all,

I'm having problems with this definition, where I want to shatter or evaluate a curve, based on a graph, so that I can distribute the divisions or intersections as I see fit.

The problem is that it won't let me shatter the curve, and the evaluate curve is sending the points way out in to Rhino space, where they won't do any good. I suspect that the orientation of the curves to the XY-plane could be the reason, but the same thing happens if I try to work with the curves at their original location.

Any help or ideas would be greatly appreciated,

(I'm using GH v0.7.0037)

thanks in advance,
Claus

MB_GH_CLEAN.3dm
gh_test02.ghx

Views: 440

Replies to This Discussion

Hi Claus,

It looks like something is going wrong with the parametrization of the curve. If you plug your curves into a Curve Param (Params>Geometry>Curve) you can right click and select the Re-parametrize option, down at the bottom of the context menu, to set the curve's domain to 0-1. This way you don't need to multiply the graph output by the curves length.

oh, that is beautiful.

thanks a million, Danny! I never would have figured that out myself.
Curve Parameters don't actually correspond directly to curve length; I think you will have more success letting your curve parameters remain in the domain from 0-1, and checking the "reparameterize" box for your curve inputs. If the length is really crucial, you might be able to use your approach of multiplying the output of the graph mappers by the curve length and then using an "evaluate length" parameter instead of an "evaluate curve."
Attachments:
danny beat me to it!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service