Git Product home page Git Product logo

Comments (13)

ly29 avatar ly29 commented on June 3, 2024 1

So having played around and tested this it out a bit, it is time to re think slightly. Also some renaming to avoid name clashes would probably be clever.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024 1

So the generator decorator solved this problem in a fine way.

Will turn this into a doc on wiki, closing since it is slightly outdated.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Of course this is just a rough draft

from sverchok.

portnov avatar portnov commented on June 3, 2024

What do you mean by TopoData? Is it just a tuple of (vertices, edges, faces) like in current sverchok, or?...

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

A virtual(?) type when both edge data or faces data could be accepted.

class TopoData(SvBaseType):
     pass

class Faces(TopoData):

class Edges(TopoData):

Edges and Faces are then in turn represented using np.array, dtype=np.uint

from sverchok.

portnov avatar portnov commented on June 3, 2024

Ah, so it's something like "edg/pol" socket that some nodes have in current sverchok. Ok.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Yes, exactly.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Also the idea is to start using the type data in an intelligent fashion.

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

why not use topo data instead of faces+edges. less sockets more clear

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

The main reason is that faces and edges are fundamentally different. It will be quite easy to remove that if feels unnecessary but more work to add it afterwards.
And also note that they are the same socket, but different types.

from sverchok.

portnov avatar portnov commented on June 3, 2024

Probably we will have to add switch with two positions (into each node): 1) use separate verts/edges/faces sockets; 2) use one mesh socket. Conversion between representations better be handled by engine.

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

vector is originally two points, start and finish, as (1,2,3)(4,5,6) form.
Vertex can become point as (1,2,3)
maybe N4 not needed in vector and point (lets call it as point to avoid misunderstanding Vector-Vertex)

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

or we just use 4 everywhere internally?

from sverchok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.