Skip to content
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

Object In Lite #1033

Closed
zeffii opened this issue Dec 10, 2016 · 7 comments
Closed

Object In Lite #1033

zeffii opened this issue Dec 10, 2016 · 7 comments
Assignees

Comments

@zeffii
Copy link
Collaborator

zeffii commented Dec 10, 2016

The plan is to make a simplified Object In, which only outputs mesh data

  • Single Object reference
  • Mesh data (Verts, Edges, Faces, Matrix)
  • Does not live update
  • Will store the referenced Object's Mesh internally in the self.node_dict[hash(self)]['geom']
  • Will store object data in iojson :)

Most of the time this is what I need, but i'm undecided about how to store the geometry in the json, probably plain-readable-text (at least initially)

@zeffii zeffii self-assigned this Dec 10, 2016
@zeffii
Copy link
Collaborator Author

zeffii commented Dec 10, 2016

maybe a flat-list storage to conserve space,

@nortikin
Copy link
Owner

space. flat is fatser

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 10, 2016

I think i'll store Edges even if Edges isn't a connected socket, same for Faces. Or make option to store optimal. anyway. time to code today..

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 11, 2016

here's a https://github.com/nortikin/sverchok/tree/obj_in_lite prelim implementation. not heavily tested yet, but it will be tested before it lands in master.

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 12, 2016

finished prelim flatten / unflatten https://github.com/nortikin/sverchok/blob/obj_in_lite/utils/mesh_repr_utils.py :)

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 12, 2016

https://gist.github.com/anonymous/2cb1e588550ee49452161fa0b79205b2
the obj_in_lite branch now stores one obj per obj in node, and flattens it into json :) and can re import :)

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 12, 2016

any questions, please reopen this issue. --

--this is now added as a beta node :)

@zeffii zeffii closed this as completed Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants