-
Notifications
You must be signed in to change notification settings - Fork 233
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
Sverchok open subdiv #4590
Sverchok open subdiv #4590
Conversation
Update with master.
@zeffii please take a look. |
@portnov this was bound to happen at some point. It will be interesting to see how stable it is, or if input-checking (to ensure stability) will introduce a noticeable penalty. |
The test fails because: You have to add file with documentation into I've added a few lines about nodes documentation - http://nortikin.github.io/sverchok/docs/contributing/node_api.html#documentation |
@zeffii my concern here is about storing dll/so in the repo... Doesn't seem to be a very good idea, to be honest. |
@portnov maybe it should be part of sverchok-extra ? i was under the impression that the dll/so would not be included by default, but are downloaded (for the appropriate platform) as soon as the user pip installs PyOpenSubdiv.. |
@zeffii This is correct. I changed how I am doing things so that my pyOpenSubdiv package is installed as a module, which loads the .dll/.so files into python's site-packages. Sverchok never actually directly sees the .dll/.so files. |
Ah, so in current solution the so/dll is not in Sverchok, but is installed as a dependency from pip? |
…ers; Better handling of no inputs situation; Internal check to prevent subidivision level greater than 5; added node muting implementation; added node documentation.
@portnov That's right. I've pushed changes according to the suggestions. Let me know what else I can do, or if the changes aren't quite what are being asked for. Also here are two example setups for the documentation: |
Now documentation building test fails. You can go into Files Changed tab, find the |
@Durman I'll work on these changes. I can't seem to get pictures to show up in the |
Just copy past links of the images from your previous post. No need to add them into git. |
… just using the ones I put in the pull request.
Hopefully I got it right, finally >_< |
…ernally by the node).
I installed PyOpenSubdiv from preferences, restarted Blender and got
Blender 3.0.0, debian gnu/linux. Am I required to install some library additionally? Will try with newer blender... |
Nope, the same with 3.2.1
|
l managed to make this work by installing |
Another question I have is about node name.
|
I've installed the library on windows without problems. |
I will look into why it's not working on Linux this week. |
@portnov I have managed to recreate the error you are getting. I don't know what the solution is yet, but hopefully I can figure it out. It probably has to do with me being a novice at C++ and linking properly. I'm open to changing the node name, maybe opensubdivision (so that it doesn't overlap with the subdivision node)? Catmull-Clark Subdivision seems long-winded to me, and most people probably won't know what it's referring to, so I'm not sure putting that in the title would be useful information. |
@portnov Can you give it a try now? I am cautiously optimistic that I was able to fix the dependency issues on Linux. Also I changed the node name to OpenSubdivision. I would prefer to call it Subdivision, but I think that would confuse the user trying to choose between Subdivision and Subdivide. Let me know if that name is acceptable. |
@GeneralPancakeMSTR well, I did The name is okay, I do not see better alternative for now. |
Docs build is failing now. As far as I understand, the problem is simple:
|
And I have a question. Can some sort of masking be implemented? To do not subdivide some faces or edges... |
Phew I'm so glad. It was a subtle compile issue.
Agreed. If you have other suggestions, let me know.
No, the node does not implement masking in the way I assume you are referring; it's pretty much all or nothing at the moment. I can look into adding masking in the future, but, from my perspective, it's a non-trivial topological problem, which I would have to really think about how to solve. |
Then I think this can be merged now. |
@GeneralPancakeMSTR My congratulations on the first commit to Sverchok. =) |
I'm checking out bugs in the implementation (between Sverchok and the pyOpenSubdiv module itself), and will get back to you when I think it's stable. I'm sorry for the delay, I needed a break lol. |
Addressed problem description
#4575 Add Catmull-Clark subdivision to Sverchok
Solution description
Preflight checklist
Code changes complete.
Code documentation complete.
Documentation for users complete (or not required, if user never sees these changes).
Manual testing done.
[~] Unit-tests implemented.
Ready for merge.