Skip to content

Commit

Permalink
Merge branch 'main' into mehdi/togglable_camcontrols
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored Aug 23, 2024
2 parents 6b13c62 + 783ea09 commit 731436d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/20_scene_pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _(event: viser.ScenePointerEvent) -> None:
client.scene.remove_pointer_callback()

# Get the first hit position (based on distance from the ray origin).
hit_pos = min(hit_pos, key=lambda x: onp.linalg.norm(x - origin))
hit_pos = hit_pos[onp.argmin(onp.sum((hit_pos - origin) ** 2, axis=-1))]

# Create a sphere at the hit location.
hit_pos_mesh = trimesh.creation.icosphere(radius=0.1)
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ examples = [
viser = ["py.typed", "*.pyi", "_icons/tabler-icons.tar", "client/**/*", "client/**/.*"]
# </>

[tool.setuptools.exclude-package-data]
# We exclude node_modules to prevent long build times for wheels when
# installing from source, eg via `pip install .`.
#
# https://github.com/nerfstudio-project/viser/issues/271
viser = ["**/node_modules/**"]

[project.scripts]
viser-dev-checks = "viser.scripts.dev_checks:entrypoint"

Expand Down

0 comments on commit 731436d

Please sign in to comment.