awesomedata Posted March 26, 2019 Share Posted March 26, 2019 (edited) Is there a method that lets me select (and group) all (_only_) the particular corners of a rectangular shape, and then tag them as NW, NE, SW, SE? For example, I want to select and group _this_ SW corner angle on _all_ rectangles in the geometry: Edited March 26, 2019 by awesomedata Quote Link to comment Share on other sites More sharing options...
awesomedata Posted April 17, 2019 Author Share Posted April 17, 2019 :'( Edge selection... Quote Link to comment Share on other sites More sharing options...
anim Posted April 17, 2019 Share Posted April 17, 2019 Group SOP (type Edges) - uncheck Base Group/Enable - check Keep By Normals - set Spread angle to something small, like 5 - set direction to: NE: {-1, 0, 1} NW: {1, 0, 1} SE: {-1, 0, -1} SW: {1, 0, -1} considering based on your screenshot that Z is N and X is W Quote Link to comment Share on other sites More sharing options...
awesomedata Posted April 17, 2019 Author Share Posted April 17, 2019 Nice! -- Thanks! To reward your awesome generosity -- I have two more questions: First, what does the 1/-1 mean in that context? -- I would assume it would be 45 or so (as in degrees), but this doesn't seem to matter. Second, what would I do if I wanted to get the center point of each edge segment in a group? Seriously though -- I do appreciate your help, @anim. I've been wracking my brain when working with edges for quite a while now. I guess I don't quite understand what's going on quite yet. Quote Link to comment Share on other sites More sharing options...
anim Posted April 18, 2019 Share Posted April 18, 2019 1. it's a direction vector the normals are compared to 2. Detail Wrangle with your geo in the second input (assuming your edge group is called "edge_group") int pts[] = expandedgegroup(1, "edge_group"); for (int i=0; i<len(pts); i+=2){ vector P0 = point(1, "P", pts[i]); vector P1 = point(1, "P", pts[i+1]); vector P = avg(P0, P1); addpoint(0, P); } ts_point_per_edge_in_edge_group.hip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.