Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

BUG - open3d crash rhino

$
0
0

Hi @eirannejad

One of the recent updates causes Rhino to crash on Mac when using Open3D. I’m not sure if it’s an Open3D or Rhino issue, but the code works fine on Windows.

I’ve tried reinstalling the environment.

Here is an example:
open3d eks.gh (5.1 KB)

# r: numpy
# r: scikit-learn
# r: open3d

import open3d as o3d
import numpy as np
import Rhino.Geometry as rg

pcloud_pts = pcloud.GetPoints()
pts_lst = [[p.X,p.Y,p.Z] for p in pcloud_pts]

pts_arr = np.array(pts_lst)

o3d_pcloud = o3d.geometry.PointCloud()
o3d_pcloud.points = o3d.utility.Vector3dVector(pts_arr)
KDTree = o3d.geometry.KDTreeSearchParamKNN(20)
o3d_pcloud.estimate_normals(search_param=KDTree, fast_normal_computation=True)

o3d_pcloud.orient_normals_to_align_with_direction() # <--- this line makes rhino crashe

best,
Johan

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles