Skip to content

Commit 08bc332

Browse files
committed
FIX: convertion to colors for colored pointclouds x2
1 parent 379c92f commit 08bc332

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gh/diffCheck/diffCheck/df_cvt_bindings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
Rhino, the basic diffCheck data structures and the diffCheck bindings.
55
"""
66

7-
import Rhino
87
import Rhino.Geometry as rg
98
import scriptcontext as sc
109

10+
import System.Drawing
11+
1112
from typing import Any
1213

1314
from diffCheck import diffcheck_bindings # type: ignore
@@ -73,7 +74,7 @@ def cvt_dfcloud_2_rhcloud(df_cloud):
7374

7475
df_cloud_points = [rg.Point3d(pt[0], pt[1], pt[2]) for pt in df_cloud_points]
7576
df_cloud_normals = [rg.Vector3d(n[0], n[1], n[2]) for n in df_cloud_normals]
76-
df_cloud_colors = [Rhino.Geometry.Vector3d(c[0], c[1], c[2]) for c in df_cloud_colors]
77+
df_cloud_colors = [System.Drawing.Color.FromArgb(c[0], c[1], c[2]) for c in df_cloud_colors]
7778

7879
rh_cloud = rg.PointCloud()
7980

0 commit comments

Comments
 (0)