Commit 15842a46 authored by wuhao's avatar wuhao 🎯

提交代码

parent 41620c1a
Pipeline #7675 passed with stages
in 25 minutes and 31 seconds
......@@ -20,7 +20,7 @@ function Sphere({ position, CoordinatePoint, CurGongjianPoint }) {
useEffect(() => {
setTimeout(() => {
camera.lookAt(0, 0, 0); // 设置相机指向原点
camera.lookAt(0, 0, 0); // 设置相机指向原点
}, 200);
}, [camera]);
......@@ -50,7 +50,9 @@ const Model = ({ url, rotation, scale }) => {
const rotations = useMemo(() => {
return rotation.map((it, i) => {
return it * (Math.PI / 180);
return i === 1
? (it * (Math.PI / 180))
: it * (Math.PI / 180);
});
}, [rotation]);
......@@ -107,7 +109,7 @@ function PointViewer({
}}
>
<OrbitControls target={[0, 0, 0]}></OrbitControls>
<axesHelper args={[1000]} position={[0, 0, 0]}></axesHelper>
<axesHelper args={[400]} position={[0, 0, 0]}></axesHelper>
{url && (
<Model
url={url}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment