Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 10, 2024
1 parent a96f0fa commit c488434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/viser/client/src/SceneTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ import {
PointCloud,
ViserImage,
ViserMesh,
rgbToInt,
} from "./ThreeAssets";
import { opencvXyFromPointerXy } from "./ClickUtils";
import { SceneNodeMessage } from "./WebsocketMessages";
import { SplatObject } from "./Splatting/GaussianSplats";
import { Paper } from "@mantine/core";
import GeneratedGuiContainer from "./ControlPanel/Generated";

function rgbToInt(rgb: [number, number, number]): number {
return (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];
}

/** Type corresponding to a zustand-style useSceneTree hook. */
export type UseSceneTree = ReturnType<typeof useSceneTreeState>;

Expand Down
2 changes: 1 addition & 1 deletion src/viser/client/src/ThreeAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type AllPossibleThreeJSMaterials =
| LineBasicMaterial
| LineDashedMaterial;

export function rgbToInt(rgb: [number, number, number]): number {
function rgbToInt(rgb: [number, number, number]): number {
return (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];
}
const originGeom = new THREE.SphereGeometry(1.0);
Expand Down

0 comments on commit c488434

Please sign in to comment.