Grasshopper

algorithmic modeling for Rhino

hi all,
i am still struggling with the basics.
what is the typical workflow to trim a surface with a curve?
to be more precise:
1 planar curve in the xy-plane
2 extrusion surface in z-direction
3 trim curve, planar in yz
now the extrusion surface should be trimmed with the trim curve, projected onto the surface.
also possible: extrude the trim curve, intersect with the extrusion surf, trim
for both workflows, i cant find the appropriate components.
maybe there is a different, more effective workflow...

thanks in advance roberto

Views: 33258

Replies to This Discussion

I dont get it.

is it possible to get the definition that you created?

Hello Vicente, thanks much for your instructive post and algorithms on these subjects.

I've built and executed your def. after adding your script code to the VB Component, but received the same errors as a couple on this post, IE:

"Error (BC30451): 'rhutil' is not declared. It may be inaccessible due to its protection level."
"Error (BC30456): 'AbsoluteTolerance' is not a member of 'Rhino.RhinoDoc'."

i hoped you'd please let me know,.
1) how to "omit all the error checking" from the VB component?, AND\OR..
2) how otherwise to have the vb script run error free or complete its task?
3) or lastly, save your time by perhaps uploading your .gh, .ghx file with the working VB script?,


Thanks again for your great! work and assistance,
Jeff

thanks for the script!!!
But the grasshopper couldn’t understand the boundary of the trim. it still see the original surface. could you please take look at the following picture. Thank and let me know if I’m wrong or any Solution? thanks

A trim just 'hides' part of the surface, but it's still there. The subsrf component will extract any portion of the surface even if that specific domain is hidden by the trim.
To filter the unwanted subsurfaces you can use the 'trim inclusion' component + a 'cull patten' component. If you want the bordering subsurfaces trimmed, you can just reapply the previous trim to them.
thank you Vicente
hi Vicente, I’m sorry to disturb u, but still I’m straggling. I can’t filter the unwanted surface???!!
In the following example i check to see if the middle of each subsurface is outside the trim and filter those out. You may want to use another condition for filtering the surfaces, like checking if all the 4 corners are inside/outside the trimmed area.

thanks a lot, this is great
let's say you wanted to include only those surfaces with all four corners as complete panels but you wanted those edge surfaces with the trims - what's a good way to go about doing this?

I am looking to maintain the curvature of those edge panels and not the UV stepped panels...
Vicente, just wondering if you could suggest a method for testing all four corner points - my attempts seem to test each corner and if any one of the four come up as true, the panel is included...
Sorry, I've been busy lately. This is one way of doing it:


Since the merge component is broken, i had to do some weird stuff to create the 4 points. Basically I'm inputing to the point component the following sequences: x -> u0,u1,u0,u1; y -> v0,v0,v1,v1.
Hi Vincente,
Thank you very much for all your help.
I m facing a different type of problem i think:
I want to trim a polysurface with a curve that spreads on several of its surfaces...Any ideas?
Also i was just wondering why you needed use "dim" in your script as opposed to the first simpler version you did in this converstation.

Many thanks

Arthur

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service