Grasshopper

algorithmic modeling for Rhino

Hi.

 

I feel like an idiot asking this question.

 

I'm trying to rotate a curve around its midpoint.

 

I thought setting the tvalue of the curve to .5 would give me the midpoint. (the curve is a straight line generated from 2 points)

 

Here's what I wrote: 

 

Dim pt As On3dPoint = crvA.PointAt(.5)

 

To get something that looks near the midpoint I have to set the value at .875

 

I'm guessing I'm not thinking about this correctly.

 

 

Views: 668

Replies to This Discussion

did you reparametrize ( set the domain from 0 to 1) the curve?

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