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 22, 2024
1 parent 7a4872f commit 2d6611e
Showing 1 changed file with 15 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

0 comments on commit 2d6611e

Please sign in to comment.