Jump to content

Placing a circle in the corner of a voronoi fracture piece


Raywiz

Recommended Posts

Hi, first post here.. I am doing a design assignment in a class

 

I want to fit a circle in every corner of a voronoi fracture piece.

 

so that I can make a template to drill holes in a board

 

place pegs in the holes and then wrap silver thread around the pegs and that will make a neclace!

 

In a CAD program I would make circle with two tangent constrains, but its not procedural!

 

I have put a circle manually in enclosed picture

 

 

I have tried a foreach sop to process every piece, but my math skills are not so good, I suspect a vop sop is the solution...

 

 

Best Regards

 

Davidpost-11533-0-39454300-1399300343_thumb.p

 

 

 

 

Link to comment
Share on other sites

Yeah, it's some pretty basic trigonometry, you just have to learn it :)

post-2678-0-58065700-1399302939_thumb.pn

 

For every point of a polygon, I get vectors along both outgoing edges by calculating tangents with the "first edge" method, both as is and with flipped vertex order.

From these I get the half vector, and when used with the distance h from above, it gets me the center of the sphere.

 

All that per polygon inside a foreach SOP and:

post-2678-0-59934500-1399303197_thumb.pn

 

The control for the circle radius is a spare parameter on the foreach node.

 

ee_poly_tangent_circles_v001.hip

  • Like 4
Link to comment
Share on other sites

  • 2 weeks later...

does anyone know the actual math behind this btw?
is it merely adding the "face" normals together for this and then "peaking"? or is it doing more?
(I want to do a similar operation a a curve.)

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

I remembered this actually, but thatnks!
unfortunately it doesn't seem to get me all the way there :P
I need to instead of peak perfectly along the normals (which indeed is very similar) carve
I already have the circle intersecting perfectly, but that seems to be a different value.. or maybe I'm just complicating the matters...

sometimes ye olde master can still show me some tricks so it seems ;)

 

I figured I could just use pythagoras,
h is the hypotheneuse, R is the far side
so H squared - R squared should give me the length, but it doesn't...
even though it's supposed to be  right angle triangle... soo I am confused. probably doing something very wrong... 

I'll give it another shot when I have some time :P

post-6571-0-37547300-1417050062_thumb.pn

Edited by freaq
Link to comment
Share on other sites

no I know xD just somehow it's not working and I'm not sure,
I'm getting the circle to fit perfectly, its carved perfectly to end where the intersecction is,
just can't carve the original line to meet the endpoint of the circle for some reason.
and seems to work on paper...  

potentially my carve is just not carving properly it's a surprisingly weird problem as the math all makes sense to me...
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...