Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -383,15 +383,13 @@ export function XRSafeLine({ a, b }: { a: [number, number, number]; b: [number,
|
|||||||
new THREE.Vector3(b[0], b[1], b[2])
|
new THREE.Vector3(b[0], b[1], b[2])
|
||||||
], [a, b]);
|
], [a, b]);
|
||||||
|
|
||||||
const geometry = useMemo(() => {
|
const line = useMemo(() => {
|
||||||
return new THREE.BufferGeometry().setFromPoints(points);
|
const geometry = new THREE.BufferGeometry().setFromPoints(points);
|
||||||
|
const material = new THREE.LineBasicMaterial({ color: '#22c55e' });
|
||||||
|
return new THREE.Line(geometry, material);
|
||||||
}, [points]);
|
}, [points]);
|
||||||
|
|
||||||
return (
|
return <primitive object={line} />;
|
||||||
<line geometry={geometry}>
|
|
||||||
<lineBasicMaterial color="#22c55e" linewidth={2} />
|
|
||||||
</line>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Componente para renderizar medições que pertencem a um modelo específico
|
// Componente para renderizar medições que pertencem a um modelo específico
|
||||||
|
|||||||
Reference in New Issue
Block a user