nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.26k stars 233 forks source link

Separating Straight Line and Corner / Intersection (case of Pipe) #3318

Closed enzyme69 closed 4 years ago

enzyme69 commented 4 years ago
Screen Shot 2020-06-05 at 10 09 09 am

Do we have node in SV that can separate straight edges and corners / intersecting edges (like pipe)?

enzyme69 commented 4 years ago

Kind of like: When there is a corner, make split cut. If not, "straight edge" can stay.

Although we also don't have way to handle intersection unless using Skin Mesher.

enzyme69 commented 4 years ago

Target result:

Screen Shot 2020-06-05 at 10 19 45 am

In here, I am manually use Skin Modifier (I know Skin Modifier handles intersection meshing), and boolean the in between "straight line edge".

Durman commented 4 years ago

In your example I think what you actually need is to count how much edges point has. If edges more than two do nothing otherwise round corner. Probably only SNL node can do this.

enzyme69 commented 4 years ago

Yes, the step I could imagine:

zeffii commented 4 years ago

there are node scripts on the issue tracker that take care of some of this.

https://github.com/nortikin/sverchok/issues/2362

I think ultimately you should start thinking about how you can describe what you want as a 'recipe', or as we call them "algorithms". Your first image shows something like this

image

image

writing algorithms that traverse a mesh and detect verts that are part of 2, 3, 4..more.. edges is not difficult, or heavy to computate. With procedurality comes responsibility to offload decision making to the algorithm, but it means being able to give parameters with which the algorithm can make decisions. Start with robust (and dumb) algorithms and then insert some probability or spatial awareness.

enzyme69 commented 4 years ago

@zeffii Thanks Zeff, I'll check that thread. I think my way is often too brute force and non systematic... the result of self taught programming.

enzyme69 commented 4 years ago
Screen Shot 2020-06-06 at 11 58 17 am

Somewhat myself from the past is trying to tackle the same thing...