algorithmic modeling for Rhino
Hi everyone,
I am fairly new to GH, attached is the surface I have created from a tutorial and I would like to put that mesh onto an egg shape.
The biggest problem I am having is I can put the surface over the egg but it looks wrong.
I want each surface to wrap the next but leaving it open like a wave inside. So effectively the surface which is created, but as an egg shape.
If this makes no sense let me know :)
Tags:
Replies are closed for this discussion.
I don't see an egg anywhere?
I didn't understand what you were doing at first, until I replaced the red group (below) with the blue group - but low and behold, they do the same thing!
If I use a scaled sphere as the "egg" instead of your surface, it looks OK to me?
The "egg" results are cleaner if, in the 'Path Mapper' Target, you replace this: "{A;B;C+2}(i)" with this: "{A;B;C+1}(i)"
As usual, the 'Image Sampler' is lost when I try to save a copy of your file. Will that ever get fixed?
There are many ways to create an egg shape, such as applying Box Morph to a sphere. Or you can use an equation to generate an "egg curve" (there are many), then create a surface of revolution from it. Just now, I grabbed such an equation from here, updated the old components and added it to your code. It revealed a couple of things that I'll mention.
First and most importantly, 'Path Mapper' is very picky about syntax and will break easily when the data tree structure changes, as it does when adding this new egg shape. It's been too long since I messed with 'Path Mapper' and I don't remember the syntax (if any?) to ignore changes to the data tree. In this case, the simple thing is to right-click on the 'C (Curve)' output of 'IntCrv' and choose "Simplify", then change 'Path Mapper' from this:
{A;B;C}(i) ==>> {A;B;C+2}(i) or
{A;B;C}(i) ==>> {A;B;C+1}(i)
to this:
{A}(i) ==>> {A+2}(i) or
{A}(i) ==>> {A+1}(i)
To keep 'Loft' happy, you also need to 'Simplify' the other 'IntCrv' so the paths match.
Second, as noted in previous post, due to a frustrating Grasshopper bug, the 'Image Sampler' is lost when I save a copy of your file. This suggests three possibilities that give different results: 1) as intended, 'Stream Filter' is connected to 'Image Sampler' which is connected to the 'A (Amplitude)' input of 'Amp', 2) no wire is connected to 'A' or 3) the 'Image Sampler' is bypassed with a wire going directly from 'Stream Filter' to 'A'. Try them all!
Third, right-click on the 'S (Surface)' input to 'SDivide' and try 'Reparameterize'.
Have fun!
See attached (and a bonus: a real egg (virtually) that 'deforms' things).
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by