-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge graph to polygons #86
Comments
something with integrals? There is delaunay file in sverchok, maybe something could be used. or dummy to start from point, check two neighbours if connected to each other and when find connected - make polygon. But there will be many mistakes. i know, if in blender press alt+ctrl+shift+M in edit mesh vertices mode, it selects 'free' vertices, but when try to fill polygons - it makes wrong, i think, it find nearest points. there is no easy way, i guess. |
if you seek for neighbours - it is geometry progression, so you will lost time in calculations. |
|
at last link to youtube lection, where in academia sitting beautifull girls and stufy math, old man talking of matrixes that helps to find path loops in graphs. We have not graphs, but it not metter. |
The video with the professor is interesting, Also thanks for the link to Geometric Tools for Computer Graphics -- looks amazing! |
I may be mistaken, but this might already do what i want: |
bmesh.ops.holes_fill(bm, edges, sides) sounds good also |
everything was investigated before us. |
will it be like |
I think it has to be applied after the mesh is baked, or write our own algorithm. Maybe it's not needed yet? |
It looks like not all holes are filled by this function. :/ |
There is interesting artical on this theme, unfortunately in Russian: |
yes, the nsides param doesn't expect many polygons in the incoming geometry, it works to a certain point, and then it will find polygons that you don't want - especially when nsides is larger than most of the easy to find polygons :). i thought we had another fill holes... fill edgenet node.. |
I think I have finished. It's have to work for planar graph only. |
@Durman want to make a node from this? (else I will! :) |
"SvPlanarEdgenetToPolygons" |
@zeffii Yes, I will make. |
i have this .config/blender/2.79/scripts/addons/sverchok/core/update_system.py", line 325, in do_update_general
node.process()
File "/planar_edgenet_to_polygons.py", line 364, in process
File "/planar_edgenet_to_polygons.py", line 300, in get_filled_graph
File "/planar_edgenet_to_polygons.py", line 222, in create_mask_used_edges
KeyError: (192, 192) |
@nortikin |
@Durman but better the node should throw human-readable exception: "Input mesh is not planar, please use IntersectEdges node before". |
@portnov Certainly yes. I have not done it because I don't know how to make fast test for this. :/ |
I'm investigating this now, automatically iterate through edges to find Edge Cycles with which to construct polygons. I think it makes sense to have a
min=3 max=n
parameter for the input. Hopefully will find the right graph theory paper to read, else I implement my own.Suggestions welcome.
The text was updated successfully, but these errors were encountered: