🚀 Auto-deploy: melhoria no snap e medição AR em 24/05/2026 13:09:17
This commit is contained in:
@@ -3,7 +3,7 @@ import { Canvas, useThree, useFrame } from '@react-three/fiber';
|
|||||||
import { OrbitControls, useGLTF, Grid, Html, Line } from '@react-three/drei';
|
import { OrbitControls, useGLTF, Grid, Html, Line } from '@react-three/drei';
|
||||||
import { Loader2 } from 'lucide-react';
|
import { Loader2 } from 'lucide-react';
|
||||||
import * as THREE from 'three';
|
import * as THREE from 'three';
|
||||||
import { useModelStore, type SceneModel } from '@/stores/useModelStore';
|
import { useModelStore, type SceneModel, type HoverInfo } from '@/stores/useModelStore';
|
||||||
import { findNearestVertex, detectHoleAtFace, findNearestEdgeSegment, detectCircularEdgeAtPoint } from './SmartMeasure';
|
import { findNearestVertex, detectHoleAtFace, findNearestEdgeSegment, detectCircularEdgeAtPoint } from './SmartMeasure';
|
||||||
import { registerModelLocalGroup, unregisterModelLocalGroup } from '@/lib/modelTransforms';
|
import { registerModelLocalGroup, unregisterModelLocalGroup } from '@/lib/modelTransforms';
|
||||||
import { parseIFCtoThree } from '@/lib/convertIFC';
|
import { parseIFCtoThree } from '@/lib/convertIFC';
|
||||||
@@ -471,7 +471,7 @@ function ModelMeasurements({ modelId }: { modelId: string }) {
|
|||||||
|
|
||||||
/** Renders snap indicator, hover tooltip, pending point and any *legacy*
|
/** Renders snap indicator, hover tooltip, pending point and any *legacy*
|
||||||
* world-frame measurements that aren't attached to a specific model. */
|
* world-frame measurements that aren't attached to a specific model. */
|
||||||
function HoverLabelOverlay({ hoverInfo }: { hoverInfo: any }) {
|
function HoverLabelOverlay({ hoverInfo }: { hoverInfo: HoverInfo | null }) {
|
||||||
const visible = !!hoverInfo;
|
const visible = !!hoverInfo;
|
||||||
const position = hoverInfo?.position ?? [0, 0, 0];
|
const position = hoverInfo?.position ?? [0, 0, 0];
|
||||||
const text = hoverInfo
|
const text = hoverInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user