wateryfield Posted January 6, 2015 Share Posted January 6, 2015 Happy new year, everyone. Let me ask my first question this year, I'm sure i have saw the similar problem before, but i can't find it again. So how can i control the shape of the grid become to a grid like. I want a smooth outline of my grid,not be a spindle. But it seems the ramp can't do it. I will appreciate if someone give me help. vopsop.hip Quote Link to comment Share on other sites More sharing options...
3iart Posted January 7, 2015 Share Posted January 7, 2015 http://en.wikipedia.org/wiki/Squaring_the_circle But it is a lot of fun trying.... </R> squareHoleRoundPeg.hip Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 7, 2015 Share Posted January 7, 2015 wateryfield, what's this for? this is the best I could do, but it's just starting with a circle. do you have to start with a grid? note there's not a 1:1 corespondance between the 50x50 grid and the points in the final geo, you have to toss away some points or the Triangulate2D SOP explodes because of points in the same place. circleTheSquare-2.hip Quote Link to comment Share on other sites More sharing options...
wateryfield Posted January 8, 2015 Author Share Posted January 8, 2015 http://en.wikipedia.org/wiki/Squaring_the_circle But it is a lot of fun trying.... </R> Thanks for your help, it looks a great fun. But actually i want use a ramp to control the grid, it does't need a perfect circle but much looks like a ellipse. wateryfield, what's this for? this is the best I could do, but it's just starting with a circle. do you have to start with a grid? note there's not a 1:1 corespondance between the 50x50 grid and the points in the final geo, you have to toss away some points or the Triangulate2D SOP explodes because of points in the same place. Actually i want do a deform so the grid looks like a leaf. So you can see the ramp parameter deform much more like a spindle not a ellipse. Is it possible to use a channel editor replace. Quote Link to comment Share on other sites More sharing options...
wateryfield Posted January 8, 2015 Author Share Posted January 8, 2015 Thanks for your help, it looks a great fun. But actually i want use a ramp to control the grid, it does't need a perfect circle but much looks like a ellipse. Actually i want do a deform so the grid looks like a leaf. So you can see the ramp parameter deform much more like a spindle not a ellipse. Is it possible to use a channel editor replace. I have do multiply ramp so make the grid looks like circle much more. But if someone can use channel editor to replace will be great. Quote Link to comment Share on other sites More sharing options...
edward Posted January 9, 2015 Share Posted January 9, 2015 You can always create a parameter that has a channel with your shape. You can then do look ups using with the chf() function. Quote Link to comment Share on other sites More sharing options...
wateryfield Posted January 9, 2015 Author Share Posted January 9, 2015 You can always create a parameter that has a channel with your shape. You can then do look ups using with the chf() function. Thanks, edward. I don't really understand how to do it. The parameter with a channel was just a point which it value change over time. But i want all the point follow the channel spine. Can you show me a simple HIP. Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 9, 2015 Share Posted January 9, 2015 (edited) Aha, I think this is what you're wanting. Real shame there's no bezier curves on the ramp parameter. Check it vopsop2.hip Edited January 9, 2015 by kleer001 1 Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 9, 2015 Share Posted January 9, 2015 Aha, I think this is what you're wanting. Real shame there's no bezier curves on the ramp parameter. Check it Quote Link to comment Share on other sites More sharing options...
wateryfield Posted January 9, 2015 Author Share Posted January 9, 2015 You can always create a parameter that has a channel with your shape. You can then do look ups using with the chf() function. Thanks, chf()function was i want. Aha, I think this is what you're wanting. Real shame there's no bezier curves on the ramp parameter. Check it Thanks. Kleer001. This is what i want, your example was simple enough and useful. Quote Link to comment Share on other sites More sharing options...
wateryfield Posted January 11, 2015 Author Share Posted January 11, 2015 (edited) Aha, I think this is what you're wanting. Real shame there's no bezier curves on the ramp parameter. Check it I have to call for help again. Why the chf() funtion not working well on wrangle. vopsop2_wrangle_unwork.hip Edited January 11, 2015 by wateryfield Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 20, 2015 Share Posted January 20, 2015 (edited) @P.z *= chf("curve", fit(@P.x, -0.5, 0.5, 0, 100.0*@TimeInc)); * Edit: the hip file in next post Edited January 20, 2015 by wandersonp Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 20, 2015 Share Posted January 20, 2015 hip file @P.z *= chf("curve", fit(@P.x, -0.5, 0.5, 0, 100.0*@TimeInc)); vopsop3.hip Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted March 5, 2021 Share Posted March 5, 2021 Cutting a grid with a curve ramp. float scale = chf('scale'); float radius = chf('radius'); int freq = chi('frequency'); float rot = radians(chf('rotate')); matrix3 m = ident(); rotate(m, rot, 2); vector pos = v@P * m; float dist = length(pos); float angle = atan(pos.x, pos.z); float angle_n = fit(angle, -M_PI, M_PI, 0.0, 1.0); float shape = chramp('shape', angle_n * freq); f@dist = (dist - radius) - shape * (scale - radius); cutting_grid.hiplc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.