Grasshopper

algorithmic modeling for Rhino

Hi!

I would like to make a data list of rectangular elements from points data. 

Now I have data list of points, which is the intersection of the lines and the lines. ( I attached this file below.)

From this data, I want to make a data list of rectangular elements. 

For example,

element1, P1, P2, P3, P4

element2, P5, P6, P7, P8

I attached more information below.

Thanks,

TOM

Views: 242

Attachments:

Replies to This Discussion

Not sure how I'd go about crafting a general solution..
But if the input data is this orderly, a simple definition can handle it

Basically, the data is already ordered so you can partition it and draw a line through the points to get 26 lines (pointing vaguely inwards). Exploding it gives you one edge of each Element, Flip Matrix to ensure correct tree structure for when you Loft it (with Straight Edges). You end up with 4 rings of attached Elements. DeBrep to separate them in to singular elements and DeBrep again to access the 4 vertices of each element :)

Was trying for a more general solution earlier, singling out each point and recreate the Elements, when I realized turning everything in to a surface/mesh and extract face vertices would probably be easier.

If your data was more disorganized there'd have to be an extra step before everything to sort it in to a parse-able data set, depending on the topology of your shape ofcourse.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service