Skip to content

Commit

Permalink
can now set parameter descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliCDavis committed Jan 20, 2025
1 parent 50b0fb1 commit fc69659
Show file tree
Hide file tree
Showing 30 changed files with 507 additions and 66 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Download the latest [release](https://github.com/EliCDavis/polyform/releases) of
polyform <downloaded_example>.json edit
```

Or if you have golang installed, simply clone the repo and run:

```bash
go run ./cmd/polyform ./examples/graphs/ufo.json edit
```

## Overview

- [Formats](/formats/)
Expand Down
4 changes: 3 additions & 1 deletion cmd/polyform/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import (
"os"

"github.com/EliCDavis/polyform/generator"
"github.com/EliCDavis/polyform/generator/artifact"
"github.com/EliCDavis/polyform/nodes"
Expand All @@ -26,7 +28,7 @@ func main() {
Producers: map[string]nodes.NodeOutput[artifact.Artifact]{},
}

if err := app.Run(); err != nil {
if err := app.Run(os.Args); err != nil {
panic(err)
}
}
3 changes: 2 additions & 1 deletion examples/collar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"image"
"image/color"
"math"
"os"

"github.com/EliCDavis/polyform/drawing/coloring"
"github.com/EliCDavis/polyform/formats/gltf"
Expand Down Expand Up @@ -269,7 +270,7 @@ func main() {
},
}

if err := app.Run(); err != nil {
if err := app.Run(os.Args); err != nil {
panic(err)
}

Expand Down
3 changes: 2 additions & 1 deletion examples/disco/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"image"
"image/color"
"os"

"github.com/EliCDavis/polyform/drawing/coloring"
"github.com/EliCDavis/polyform/formats/gltf"
Expand Down Expand Up @@ -402,7 +403,7 @@ func main() {
"rough.png": basics.NewImageNode(nodes.Value(texture(0, 1))),
},
}
err := app.Run()
err := app.Run(os.Args)
if err != nil {
panic(err)
}
Expand Down
3 changes: 2 additions & 1 deletion examples/edit-gaussian-splats/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"math"
"os"

"github.com/EliCDavis/polyform/drawing/coloring"
"github.com/EliCDavis/polyform/formats/ply"
Expand Down Expand Up @@ -172,7 +173,7 @@ func main() {
// AvailableNodes: generator.Nodes(),
}

if err := app.Run(); err != nil {
if err := app.Run(os.Args); err != nil {
panic(err)
}
}
3 changes: 2 additions & 1 deletion examples/fired-heater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"math"
"os"

"github.com/EliCDavis/polyform/drawing/coloring"
"github.com/EliCDavis/polyform/formats/gltf"
Expand Down Expand Up @@ -476,7 +477,7 @@ func main() {
},
}

err := app.Run()
err := app.Run(os.Args)
if err != nil {
panic(err)
}
Expand Down
Loading

0 comments on commit fc69659

Please sign in to comment.