Grasshopper

algorithmic modeling for Rhino

HI Guys, 

I have recently started to try and implement plankton in some custom c# components and I have some problems with getting the edge pointers to work properly. SO the question is am I correct in understanding that the following code should give me the index's for the vertices that make up an edge in my mesh?

A = plm.Halfedges.EndVertex(y);
B = plm.Halfedges.EndVertex(plm.Halfedges[y].NextHalfedge);

See attached image for what I am getting. 

I was wondering if I would have to call a sort command off sorts? or that my assumptions are wrong. 

Any help is more then welcome. 

- Jens

 

Views: 525

Attachments:

Replies to This Discussion

A = plm.Halfedges[y].StartVertex;
B = plm.Halfedges.EndVertex(y);

There's some preliminary documentation here: http://pearswj.co.uk/plankton. Please let us know if it's useful!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service