Grasshopper

algorithmic modeling for Rhino

I am attempting to add the z-component of multiple surfaces to create a resulting surface.  I have a routine set up that works - essentially sampling each surface by finding the intersection point of each surface with a grid of intersecting lines, and adding the z-components of those intersections together. 
(See attached screenshot, ghx, and 3dm if my explanation failed :)

This process works fine for smaller or simpler surfaces.  But when larger, complex surfaces are "added", the resulting SrfGrid stops giving a smooth result.  Obviously, the number of sampling intersections can keep being increased, but the surface-curve (and line) intersection components get expensive pretty quickly.  Does anyone have a better way of going about this?

Thanks in advance!

P.S.  I tested the Surface-Line and the Surface-Curve Intersection components with the Profiler widget. They were close, but the Surface-Curve was a bit faster - so I've used that component here.

Views: 299

Attachments:

Replies to This Discussion

Here's something similar I posted a while back that is maybe relevant:

http://www.grasshopper3d.com/xn/detail/2985220:Comment:46866
Thanks for the reply, Daniel. I believe that is almost exactly the definition I included above. Great minds, right? :)

It works wonderfully for simpler surfaces, but without a massive number of samples, it doesn't capture small, complex details very well.
But aren't you sampling both surfaces with a square grid ?
If you look at my def you'll see it is a little different as it samples one surf at the UV grid of the other.
I did see that, but discounted it because I am actually looking to add many surfaces. You're right though, I need to experiment to see how it will turn out if the multiple surfaces are added recursively, using the UV grid of the current sum (or new surface).

Thanks for the help - it is appreciated. I was hoping there might be another process I wasn't aware of that was better suited to this purpose, but I guess not!

Also, I've really enjoyed your work and blog.
I tried a variety of sampling spacing using UV grids, and unfortunately, none of them worked well for these detailed surfaces. Anyone have another idea? Thanks much.

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