Skip to content

Commit

Permalink
blueprint for signed distance field demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 21, 2024
1 parent 7a4872f commit 9c20aa1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion examples/python/signed_distance_fields/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import numpy as np
import numpy.typing as npt
import rerun as rr # pip install rerun-sdk
import rerun.blueprint as rrb
import trimesh
from download_dataset import AVAILABLE_MESHES, ensure_mesh_downloaded
from trimesh import Trimesh
Expand Down Expand Up @@ -194,7 +195,20 @@ def main() -> None:
rr.script_add_args(parser)
args = parser.parse_args()

rr.script_setup(args, "rerun_example_signed_distance_fields")
rr.script_setup(
args,
"rerun_example_signed_distance_fields",
blueprint=rrb.Horizontal(
rrb.Vertical(
rrb.Horizontal(
rrb.Spatial3DView(name="Input Mesh", origin="/world/mesh"),
rrb.TensorView(name="SDF", origin="/tensor"),
),
rrb.TextLogView(name="Execution Log"),
),
rrb.Spatial3DView(name="Distance Field Samples", origin="/world/sdf"),
),
)

mesh_path = args.mesh_path
if mesh_path is None:
Expand Down
1 change: 1 addition & 0 deletions src/mesh-to-sdf
Submodule mesh-to-sdf added at c9f26e

0 comments on commit 9c20aa1

Please sign in to comment.