dymokomi/luced-3d
Source of release 0.11.4
0.11.4 / examples / wrangles / neighbor_lists.prisma
#prisma 4.0
def luced3d "scene" {
int display = 6
int next_id = 7
bool preview = false
int scope = -1
int selected = 6
int take = 0
float64[4] time = [1, 1, 240, 24]
str units = "mm"
int version = 1
def network "nodes" {
def Grid "n2" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
str[0] hidden = []
int id = 2
float64[0] inputs = []
str name = "Grid 2"
int output = -1
float64[32] parameters = [8, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
int parent = -1
float64[2] position = [0, 0]
float64[0] sources = []
str[3] texts = ["", "weight", "renamed"]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
def Code "n3" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
str[0] hidden = []
int id = 3
float64[2] inputs = [2, -1]
str name = "Code 3"
int output = -1
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
int parent = -1
float64[2] position = [0, 90]
float64[2] sources = [0, 0]
str[5] texts = ["", "p.P[1] = snoise(p.P * 0.5) * 0.6 + rand((i64)p.ptnum) * 0.3\nvar nbrs = k.ints()\nlet g = k.input(0)\nfor i in 0..<g.neighbor_count(p.ptnum):\n nbrs = nbrs.append(g.neighbor(p.ptnum, i))\np.set_i32_array(\"nbrs\", nbrs)\n", "", "", ""]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
def Code "n4" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
str[0] hidden = []
int id = 4
float64[2] inputs = [3, -1]
str name = "Code 4"
int output = -1
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
int parent = -1
float64[2] position = [0, 180]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet nbrs = p.i32_array(\"nbrs\")\nvar sum = p.P[1]\nfor i in 0..<nbrs.len():\n sum += g.point_P(nbrs.at(i))[1]\np.P[1] = sum / (f32)(nbrs.len() + 1)\n", "", "", ""]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
def Code "n5" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
str[0] hidden = []
int id = 5
float64[2] inputs = [4, -1]
str name = "Code 5"
int output = -1
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
int parent = -1
float64[2] position = [0, 270]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet nbrs = p.i32_array(\"nbrs\")\nvar sum = p.P[1]\nfor i in 0..<nbrs.len():\n sum += g.point_P(nbrs.at(i))[1]\np.P[1] = sum / (f32)(nbrs.len() + 1)\n", "", "", ""]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
def Code "n6" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
str[0] hidden = []
int id = 6
float64[2] inputs = [5, -1]
str name = "Code 6"
int output = 1
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
int parent = -1
float64[2] position = [0, 360]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet nbrs = p.i32_array(\"nbrs\")\nvar sum = p.P[1]\nfor i in 0..<nbrs.len():\n sum += g.point_P(nbrs.at(i))[1]\np.P[1] = sum / (f32)(nbrs.len() + 1)\n", "", "", ""]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
}
def takes "takes" {
def take "t0" {
str[5] cameras = ["", "", "", "", ""]
float64[5] counts = [0, 0, 0, 0, 0]
float64[5] enabled = [1, 1, 1, 1, 1]
str[5] hidden = ["", "", "", "", ""]
float64[5] ids = [2, 3, 4, 5, 6]
str name = "Main"
float64[0] transforms = []
float64[5] visible = [1, 1, 1, 1, 1]
}
}
def editor_view "view" {
float64[6] camera = [0.69999999999999996, 0.55000000000000004, 20.413869591275255, 0, 0.10648965835571289, 0]
float64[3] network = [1, 0, 0]
}
}