dymokomi/luced-3d
Source of release 0.11.9
0.11.9 / examples / wrangles / smoothing.prisma
#prisma 4.0
def luced3d "scene" {
int display = 7
int next_id = 8
int scope = 2
int selected = 7
int take = 0
float64[4] time = [1, 1, 240, 24]
float64[4] tolerances = [0.01, 0.001, 0.0017453292519943296, 0.0050000000000000001]
str units = "mm"
int version = 1
def network "nodes" {
def Geo "n2" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 2
float64[0] inputs = []
str name = "Geo 2"
float64[48] parameters = [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 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 = [40, 70]
float64[0] sources = []
str[3] texts = ["", "weight", "renamed"]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
def Sphere "n3" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 3
float64[0] inputs = []
str name = "Sphere 3"
float64[48] parameters = [1, 64, 32, 0, 0, 0, 0, 1, 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 = 2
float64[2] position = [0, 0]
float64[0] sources = []
str[3] texts = ["", "weight", "renamed"]
bool time_dependent = false
bool visible = false
def recipes "edits" {
}
}
def Code "n4" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 4
float64[2] inputs = [3, -1]
str name = "Code 4"
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 = 2
float64[2] position = [0, 90]
float64[2] sources = [0, 0]
str[5] texts = ["", "let n = snoise(p.P * 6.0) + rand((i64)p.ptnum) * 0.5\np.P = p.P + normalized(p.P) * (n * 0.12)\n", "", "", ""]
bool time_dependent = false
bool visible = false
def recipes "edits" {
}
}
def Code "n5" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 5
float64[2] inputs = [4, -1]
str name = "Code 5"
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.15000000596046448, 12, 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 = 2
float64[2] position = [0, 180]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet near = g.nearpoints(p.P, k.f32(\"radius\", 0.15), k.i32(\"points\", 12))\nvar sum: f32[4] = [0.0, 0.0, 0.0, 0.0]\nfor i in 0..<near.count:\n sum = sum + g.point_P(near.points[i])\nif near.count > 0:\n p.P = sum * (1.0 / (f32)near.count)\n", "", "radius\t16\t1\t0\npoints\t17\t1\t1", ""]
bool time_dependent = false
bool visible = false
def recipes "edits" {
}
}
def Code "n6" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 6
float64[2] inputs = [5, -1]
str name = "Code 6"
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.15000000596046448, 12, 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 = 2
float64[2] position = [0, 270]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet near = g.nearpoints(p.P, k.f32(\"radius\", 0.15), k.i32(\"points\", 12))\nvar sum: f32[4] = [0.0, 0.0, 0.0, 0.0]\nfor i in 0..<near.count:\n sum = sum + g.point_P(near.points[i])\nif near.count > 0:\n p.P = sum * (1.0 / (f32)near.count)\n", "", "radius\t16\t1\t0\npoints\t17\t1\t1", ""]
bool time_dependent = false
bool visible = false
def recipes "edits" {
}
}
def Code "n7" {
int edit_count = 0
bool enabled = true
str frozen = ""
int guard = 0
int held_actions = 0
str held_aligns = ""
str held_failure = ""
str held_file = ""
int held_input = 0
int held_key = 0
str held_note = ""
str[0] hidden = []
int id = 7
float64[2] inputs = [6, -1]
str name = "Code 7"
float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.15000000596046448, 12, 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 = 2
float64[2] position = [0, 360]
float64[2] sources = [0, 0]
str[5] texts = ["", "let g = k.input(0)\nlet near = g.nearpoints(p.P, k.f32(\"radius\", 0.15), k.i32(\"points\", 12))\nvar sum: f32[4] = [0.0, 0.0, 0.0, 0.0]\nfor i in 0..<near.count:\n sum = sum + g.point_P(near.points[i])\nif near.count > 0:\n p.P = sum * (1.0 / (f32)near.count)\n", "", "radius\t16\t1\t0\npoints\t17\t1\t1", ""]
bool time_dependent = false
bool visible = true
def recipes "edits" {
}
}
}
def takes "takes" {
def take "t0" {
str[6] cameras = ["", "", "", "", "", ""]
float64[6] counts = [12, 3, 0, 0, 0, 0]
float64[6] enabled = [1, 1, 1, 1, 1, 1]
str[6] hidden = ["", "", "", "", "", ""]
float64[6] ids = [2, 3, 4, 5, 6, 7]
str name = "Main"
float64[15] transforms = [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0]
float64[6] visible = [1, 0, 0, 0, 0, 1]
}
}
def editor_view "view" {
float64[3] network = [1, 0, 0]
float64[46] panes = [0, 1, 1, -1, 0, 1.5707963267948966, 9, 0, 0.80000000000000004, 0, 0, 1, 45, 0, -1, 0.69999999999999996, 0.55000000000000004, 6.3314970400223283, 0.0070951581001281738, 1.0391580569557846, 0.0031616687774658203, 0, 0, 45, 3, -1, 0, 0, 9, 0, 0.80000000000000004, 0, 0, 1, 45, 6, -1, 1.5707963267948966, 0, 9, 0, 0.80000000000000004, 0, 0, 1, 45]
}
}