diff --git a/glue_ar/common/scatter_gltf.py b/glue_ar/common/scatter_gltf.py index a015192..f6190cb 100644 --- a/glue_ar/common/scatter_gltf.py +++ b/glue_ar/common/scatter_gltf.py @@ -3,7 +3,7 @@ from glue.utils.array import ensure_numerical from glue_vispy_viewers.common.viewer_state import Vispy3DViewerState from glue_vispy_viewers.scatter.layer_state import ScatterLayerState -from numpy import isfinite, ndarray +from numpy import ndarray from numpy.linalg import norm from typing import List, Literal, Optional, Tuple @@ -15,7 +15,7 @@ normalize, rectangular_prism_triangulation, sphere_triangles from glue_ar.gltf_utils import SHORT_MAX, add_points_to_bytearray, add_triangles_to_bytearray, \ index_mins, index_maxes -from glue_ar.utils import Viewer3DState, get_stretches, iterable_has_nan, hex_to_components, \ +from glue_ar.utils import Viewer3DState, iterable_has_nan, hex_to_components, \ layer_color, offset_triangles, unique_id, xyz_bounds, xyz_for_layer, Bounds from glue_ar.common.gltf_builder import GLTFBuilder from glue_ar.common.scatter import Scatter3DLayerState, ScatterLayerState3D, \ diff --git a/glue_ar/common/scatter_stl.py b/glue_ar/common/scatter_stl.py index 6d29be5..9242338 100644 --- a/glue_ar/common/scatter_stl.py +++ b/glue_ar/common/scatter_stl.py @@ -41,7 +41,7 @@ def add_scatter_layer_stl(builder: STLBuilder, preserve_aspect=viewer_state.native_aspect, mask=mask, scaled=True) - + if len(data) == 0: return