Grasshopper

algorithmic modeling for Rhino

Hi Guys,

I tried the "circle by 3points" GH function but since the function does not include tangency to curves the circles are not always included in the triangle (if not equilateral).
Would there be another way to get a circle from point AND tangency to curve ?

Many thanks,

Arthur

Views: 1925

Replies to This Discussion

Wikipedia page with triangle|Circle math.

I can add a component that takes a triangle and creates the circle, but until I do you'll have to transscribe one of those equations into either Grasshopper nodes or VB.NET.

--
David Rutten
david@mcneel.com
Seattle, WA
Thanks a lot David,

I am actualy trying to draw the "incircles" using existing tools on GH.
On the wikipedia link it says: The "InCircles" center is located at the intersection point between the bisectors of the triangle's angle.
Is there any easy way to get the bisector line of an angle on GH ?

thanks again:)

Arthur

You can construct a bisector by taking the two departing vectors, unitizing them and adding them.

This, if you have a triangle defined by 3 points A, B & C, you can create two vector starting at corner A (AB and AC). Then you unitize both vectors (to make sure they are the same length) and add them together. The resulting vector points in the bisector direction.

The VectorSummation component has a boolean input parameter which will unitize the vectors for you, so you can skip that part.

I just wrote a component for this so it will be available in the next version.

--
David Rutten
david@mcneel.com
Seattle, WA
I also just added a Steiner Ellipse component. The cool thing about those is that two adjacent ellipses are both coincident and tangent halfway the triangle edges. So if you construct them from a grid of triangles they always line up:


--
David Rutten
david@mcneel.com
Seattle, WA
Hey David,
Thanks a lot! Made it!
I found the angle bisector using your advice but was wondering: What does "unitize vector" actualy do?

It sets the vectors' length to 1...vectors can represent both direction and mangnitude, but if you have unitized vectors, then they are pretty much just a representation of direction.

arthur did this bisector script in grasshopper workshop today.

an update! :)

 

Attachments:
thanx for the link
Hy Arthur,

could you post the final file? Can't find the way to solve this form me

Thanks
Matthias

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