Commit 15842a46 authored by wuhao's avatar wuhao 🎯

提交代码

parent 41620c1a
Pipeline #7675 passed with stages
in 25 minutes and 31 seconds
...@@ -50,7 +50,9 @@ const Model = ({ url, rotation, scale }) => { ...@@ -50,7 +50,9 @@ const Model = ({ url, rotation, scale }) => {
const rotations = useMemo(() => { const rotations = useMemo(() => {
return rotation.map((it, i) => { return rotation.map((it, i) => {
return it * (Math.PI / 180); return i === 1
? (it * (Math.PI / 180))
: it * (Math.PI / 180);
}); });
}, [rotation]); }, [rotation]);
...@@ -107,7 +109,7 @@ function PointViewer({ ...@@ -107,7 +109,7 @@ function PointViewer({
}} }}
> >
<OrbitControls target={[0, 0, 0]}></OrbitControls> <OrbitControls target={[0, 0, 0]}></OrbitControls>
<axesHelper args={[1000]} position={[0, 0, 0]}></axesHelper> <axesHelper args={[400]} position={[0, 0, 0]}></axesHelper>
{url && ( {url && (
<Model <Model
url={url} 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