Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
cs_vsofpm
Commits
15842a46
Commit
15842a46
authored
May 30, 2024
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
41620c1a
Pipeline
#7675
passed with stages
in 25 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
index.jsx
src/components/PointViewer/index.jsx
+5
-3
No files found.
src/components/PointViewer/index.jsx
View file @
15842a46
...
...
@@ -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=
{
[
10
00
]
}
position=
{
[
0
,
0
,
0
]
}
></
axesHelper
>
<
axesHelper
args=
{
[
4
00
]
}
position=
{
[
0
,
0
,
0
]
}
></
axesHelper
>
{
url
&&
(
<
Model
url=
{
url
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment