nortikin / sverchok

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

Add Doubles #190

Closed enzyme69 closed 10 years ago

enzyme69 commented 10 years ago

prtscr capture_3

I am experimenting with Intersect Edges and trying to come up with interesting shapes just by doodling using Grease Pencil.

From Grease Pencil => Simplified Edges, there are still many steps, but it is okey for now.

Now, If I have shapes like above. Now, instead of "Remove Doubles", I actually here wanted to have each enclosed shapes separated.

I think Zeffii's "extra data" from Intersected Edges can be used here with Fill Holes.

However, I am wondering how do we go about doing this => where-ever vertices have multiple edges going into it, separate it.

Is it Polygon Boom? Perhaps something like Polygon Boom, but only for enclosed shapes.

enzyme69 commented 10 years ago

prtscr capture_4

Fill Hole and Polygoon Boom actually works in this case! As long Fill Hole does the hole filling nicely, polygon boom can then separate on intersection.

Sweet!

nortikin commented 10 years ago

https://drive.google.com/file/d/0B6KMvjWAjGiyalhSREhCdVB4a28/edit?usp=sharing

enzyme69 commented 10 years ago

Haha.. Nikitron, you read my mind :) Indeed this is such an interesting setup. Very simple, but allow for creation of many random things.

Thanks again for that advanced example!

I wish I have 3D printer, we can make Toys using this "Intersecting" setup.

zeffii commented 10 years ago

@enzyme69 -- should be cool to have a 2d / 3d schematic output for instructions for woodworkers to make these objects. Sydney uni has great woodworking facilities I read.

enzyme69 commented 10 years ago

yes actually. I need more insider people. I know Sydney Uni, but no access. I am at UTS, I heard they have nice 3D printing but no access to it, different department.

I guess, I can start asking around.

enzyme69 commented 10 years ago

I reopen this one because it is kind of interesting.

What would you call it if I have something like this:

prtscr capture_8

And I need to clean it up so that, every Edges with Polgon Faces == are stored, while the rest of them are deleted / clean up?

prtscr capture_9

Sometimes I also found the case where there are stray vertices on straight edges, but nothing really connected on that edges (kind of unnecessary and can be deleted.

zeffii commented 10 years ago

this could be as simple as :

if vertex shared by more than n verts:
    # ( 3 = T ,  4 = X , ..etc )  
    then output  that vertex

image

enzyme69 commented 10 years ago

Yes, exactly something like that. Instead of Remove Doubles, this actually create doubles/duplicate of itself => this is for every vertices sharing edges.

I don't know what this process is called.

If one can select those vertices, one can then invert it to get Vertices that only have 1 edge == and not sharing any edges => and this selfish Vertex can be gone.

2nd question: (kind of related) Also, do we have way to "Edge Boom", instead of "Polygon Boom"? Like totally break every points.

enzyme69 commented 10 years ago

In Blender environment, there is such thing using Edge Split and this work for every Edge that is actually Mark as Sharp.

enzyme69 commented 10 years ago

Similar to Polygon Boom, but not.

I just found out about below, it is interesting.

prtscr capture_11 prtscr capture_10

enzyme69 commented 10 years ago

This is weird, but I will use it quite often.

prtscr capture_12

ly29 commented 10 years ago

Doesn't polygonboom separate all edges already?

Doesn't feeding the faces to Polygon2Edges directly give the same result? Those delete loose and mesh join shouldn't do anything with that setup.

enzyme69 commented 10 years ago

prtscr capture_13

You are right. Hmm... was confused a bit before.

Interesting, I think I have all I need.

Cheer Linus!