Grasshopper

algorithmic modeling for Rhino

Hi guys,
Is there a RhUtil method to Duplicate Edges of Surface or Mesh?
cheers,
arthur

Views: 701

Replies to This Discussion

No. A brep (what most users would call a polysurface) is a list of several different pieces of information, mostly surfaces and curves that describe the Boundry of the object (that's what the B stands for). Anyway, if you tap into this list, then you can simply duplicate one of the edges from that list. The big issues is actually how do you know which edge to specify, so you're going to have to figure out a way to find out which edge you want.

Dim myEdgeCrv as OnCurve = Nothing
myEdgeCrv = myBrep.m_E(0).DuplicateCurve

FWIW these questions should probably be going in the VB/C# corner.
I should add that a mesh is going to be a bit harder more because its probably going to be harder specifying the edge than with a brep. What you're really looking for, in regards to what you duplicate, is actually just the two edge vertice. Once you have that you can just make the line yourself.
Thanks Damien,
I ll ask my VB related questions there from now...
I thought about mesh because there is a command on Rhino called dup mesh hole boundary which duplicates the parts of the mesh that are unwelded...so i though there might be a similar method.
Actually I haven't found a "duplicate naked edges" method in the SDK. Which means that finding naked edges is a real bitch. Why are you dealing with meshes within GH anyway? Yea they may stick their head in here or there, but if you're generating any sort of geometry, you might want to stick with NURBS as much as you can.
haha mesh is a pain indeed even in Rhino but our engineers use mesh to run their structural tests so i had to...

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