Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

some funtion is not valid in vscode such as "build a coordinate and make visualization"

Open Jimmy-L99 opened this issue 1 year ago • 5 comments

Checklist

My Question

python -- version 3.11.9
open3d -- version 0.18.0

code:

import open3d as o3d

print("start")
coordinate = o3d.geometry.TriangleMesh.create_coordinate_frame(size=1)
print("build coordinate")
o3d.visualization.draw_geometries([coordinate])
print("visualization")

result:

PS E:\python3.11\workspace> & E:/python3.11/python.exe e:/python3.11/workspace/test.py
start
PS E:\python3.11\workspace>

Normally, it will show a window with a coordinate inside it, but it doesn't and no error. If I show some points, it works!

import open3d as o3d
import numpy as np

num_points = 1000
points = np.random.rand(num_points, 3)
point_cloud = o3d.geometry.PointCloud()
point_cloud.points = o3d.utility.Vector3dVector(points)
o3d.visualization.draw_geometries([point_cloud], window_name="Random Point Cloud")

result: It give me a window with some random point_cloud, sorry for no picture~

So the coordinate visualization, how can I fix it?

Jimmy-L99 avatar Jul 09 '24 12:07 Jimmy-L99

I also encountered this problem, have you found the solution to it yet?

KazyaGlaedwine avatar Jul 12 '24 03:07 KazyaGlaedwine

@KazyaGlaedwine Not yet, I've tried switching to a few versions of open3d, but the problem persists, and I now have to run some code in the cloud to get visual feedback.

Jimmy-L99 avatar Jul 12 '24 03:07 Jimmy-L99

@2500035435 Damn, I was hoping for good news 😂 now I have to dig my head as I find a solution to it. Thanks for replying!

KazyaGlaedwine avatar Jul 12 '24 03:07 KazyaGlaedwine

@2500035435 Just to confirm something, what OS are you using?

KazyaGlaedwine avatar Jul 12 '24 06:07 KazyaGlaedwine

windows10

Jimmy-L99 avatar Jul 12 '24 06:07 Jimmy-L99