Git Product home page Git Product logo

Comments (48)

ly29 avatar ly29 commented on June 3, 2024 1

Also almost all nodes should start out as a script.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024 1

object_count
Total obj count without structure

from sverchok.

zeffii avatar zeffii commented on June 3, 2024 1

oh.. i stand corrected. nice
image

from sverchok.

zeffii avatar zeffii commented on June 3, 2024 1

hehe..or a modes version.. modes = 2,3,4,n

from sverchok.

ly29 avatar ly29 commented on June 3, 2024 1

Levels are a big part of the reason for Redux.

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

that's the job for me, as i see.
Where is docs?

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

ok, see
https://github.com/Sverchok/Sverchok/wiki/Node-Development-guide

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Also it is just not an issue of porting all old nodes, sometimes they could very well be combined into one node.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

and numpy-ified, wrapping pydata for the basic primitives is not a great idea.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Yeah, for the boot strap stage is was ok, but now we should step things up a bit.

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

will start from scripted node, from basics

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

i'll do a numpy torus :)

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Playing with the scripted node is a good starting point.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

oh. I miss the socket label showing the nested count.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

I will see what I can do.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

depth
@zeffii
This shows the data depth, which isn't really the same but due in structure difference what is easily available.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

A data structure viewer like stethoscope node would be good to have. Actually essential.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

the last makes more sense . agreed about a viewer.

I'd like to propose an idea for a viewer / stethoscope. #44

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

this isn't quite possible yet.
image

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

It needs a torus mode as well

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

except for the cyclic flag / yes

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

It is a bit cobbled together however, just mostly wanted to try a node that would lower the complexity level. but also nice to have.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

np.repeat / tile

import numpy as np
from svrx.nodes.node_base import node_func
from svrx.nodes.classes import NodeMathBase
from svrx.typing import Number, Int


@node_func(bl_idname=local_name, multi_label="Repeat", id=0, cls_bases=(NodeMathBase,))
def np_repeat(Values: Number = 0.0, Repeat: Int = 2) -> Number:
    return np.repeat(Values, Repeat)


@node_func(id=10)
def np_tile(Values: Number = 0.0, Repeat: Int = 2) -> Number:
    return np.tile(Values, Repeat)

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Yeah repeat and tile surprised me as well when I looked into them. Nice with np cookbook, was thinking to do that

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

i'd been thinking about this for N1 but also it makes sense for svrx, a Console Node.

 ------------------------------
 |  previous line-4        [use]| 
 |  previous line-3        [use]| 
 |  previous line-2        [use]| 
 |  previous line-1        [use]|
 |  previous line          [use]|
 |_>>> |__some command________|_|

with a button on the draw_buttons_ext to show a list of commands currently implemented

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

That would be cool.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

List join A + B ( + N....), for vertices, with option to

  • attach each array to the end
  • interleave A0, B0, A1, B1, ... An, Bn

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

@zeffii
Will do today, corrected the signature for tile and repeat and removed the multiply constant in trig.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

removed the multiply constant in trig.

as long as there's still a convenient way to have multiples of pi/tau from one node.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

I just removed the wrapper, it wasn't needed. It was only meant for when the constant was only the constant.
To allow code like

@node_func(...)
@constant
def e() -> Number:
    return np.e

So tau it becomes like this.

@node_func(bl_idname=local_name, id=61)
def tau(n: Number = 1.0) -> Number:
    return np.pi * n * 2

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

The feeling you get when you realize that you have screwed up your git totally and the latest changes are out of sync... Not happy with the desktop client now, it should have at least warning for overwriting a repo with another one...

Only one hour of work luckily.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

oh man.. use git for windows has a bash-like terminal (ignore the UI part of the program)

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

but losing work... painful.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

I could still access the changes in my text editor, so copied it out, nuked the git dir and started over.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

mix
I guess #55 is easier now.
I am holding off the N version but A + B join is here.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

great! A+B is cool too +N isn't so vital.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Okay so up now, called merge for now, had to handle uneven case in a resonable manner

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

i'll make a SN with 3 if needed.

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

could topology node have a mode where Line takes a skip rate, n , skep every n'th edge.

|                                   verts -|
|                                   edges -|
|          mode:  line skip n              |
|- verts                                   | 
|- n                                       |

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

(ofcourse it could - would it be suitable? )

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Do it, worst case we can stick into a node - strange topology generators

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

parking here because i had no more time today

from svrx.util.function import generator
from svrx.typing import IntP, Int, Bool

@node_script
@generator
def polyline_drop_n(
    verts: [Vertices] = Required, num: Int = 2, wrap: Bool = True) -> ([Vertices], [Edges], [Faces]):

    vertices = np.concatenate(verts)
    count = len(vertices)
    e_start = np.arange(0, count-1)
    e_stop = e_start + 1
    edges = np.array((e_start, e_stop)).T
    if wrap:
          edges = np.vstack([edges, [count-1, 0]])
    if num > 0:
        skip_list = list(range(num, count, num+1))
        edges = np.delete(edges, skip_list, axis=0)
    
    return vertices, edges, None

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

Bool displays as an Int Property

from sverchok.

zeffii avatar zeffii commented on June 3, 2024

one thing that's bothered me about how Masking works.. is it needs lists of equal length as the input data, i would like to be able to pass a list of True indices instead / or as option.

- data = [v0, v1, v2, v3, v4, v5, v6]
- mask = [0,3,6]

output data 
[v0, v3, v6] = True
[v1,v2,v4,v5] = False

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

Masking is worthy of an issue of its own. Very quick implementation...

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

are we ignore level's workflow in SvRx?
How to deal with levels in general? I mean zip/join/shift and other list operations.

from sverchok.

ly29 avatar ly29 commented on June 3, 2024

I handles levels internally but there aren't any node working with it. Yet. It is needed

from sverchok.

nortikin avatar nortikin commented on June 3, 2024

Ok, thanks.
And sorry for my low activity, but my personal life became better (if one can compare), it takes lot of time.

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.