Grasshopper

algorithmic modeling for Rhino

Sphere is not touching two random points with pythagoras

Hi guys,

I have a problem with this sphere, that is not touching two random points.

I would like that the sphere just touches them on the buttom of the sphere.

I tried it with the pythgoras but it seemed to not work and I don't know why, because my expession should be right.

My second problem is when one point hasn't the same height(coordinates) as the other one the phytagoras wouldn't work any more. One point would be in the sphere and one would be outside.

Could anyone please help me.

Any help is much apprechiated.

Views: 398

Attachments:

Replies to This Discussion

Hi! the formula in the Expression component is wrong, it must be Sqrt(c^2-a^2)

I forgot to put the file.

Attachments:

The second definition solves the second problem, not very elegantly though.

Attachments:

Thanks a lot that's exactly what I wanted :D

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