chore: run formatting on all files
Some checks failed
🏗️ Build and Deploy / setup (push) Successful in 1m10s
🏗️ Build and Deploy / lint (push) Successful in 34s
🏗️ Build and Deploy / format (push) Successful in 38s
🏗️ Build and Deploy / typecheck (push) Successful in 33s
🏗️ Build and Deploy / build_and_deploy (push) Failing after 1m53s

This commit is contained in:
Max Richter
2026-02-02 17:33:01 +01:00
parent 3c168aa9b6
commit 9484b3599e
22 changed files with 527 additions and 56 deletions

View File

@@ -8,15 +8,16 @@ The visual programming language consists of so called `Nodes` which are stored a
```typescript
type Node = {
id: string,
outputs: string[],
id: string;
outputs: string[];
inputs: {
[key:string]: NodeInput
}
}
[key: string]: NodeInput;
};
};
```
## How are the arguments defined?
To define which arguments a nodes accepts we use JSON. This json is embeded into the `.wasm` file of our node. An example `definition.json` file could look like this:
```json

View File

@@ -5,21 +5,23 @@
Plantarium encodes different types of data differently. Right now we have three types of data:
### Path
[0, stem_depth, ... x,y,z,thickness, x,y,z,thickness...]
### Geometry
[1, vertex_amount, face_amount, ... faces in index_a, index_b, index_c ..., ... vertices in x,y,z,x,y,z ..., ... normals in x,y,z,x,y,z ...]
### Instances
[
2,
vertex_amount,
face_amount,
instance_amount,
stem_depth,
...faces...,
...vertices...,
...normals...,
...4x4 matrices for instances...
]
[
2,
vertex_amount,
face_amount,\
instance_amount,
stem_depth,
...faces...,
...vertices...,
...normals...,
...4x4 matrices for instances...
]