Skip to content

Commit 692557a

Browse files
committed
FIX-WIP: testing gh build for upload aartifactv4
1 parent d6a1597 commit 692557a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/gh-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
source: src/gh/components
2525
target: build
2626

27-
- uses: actions/upload-artifact@v2
27+
- uses: actions/upload-artifact@v4
2828
with:
2929
name: ghuser-components
3030
path: build

src/gh/diffCheck/diffCheck/df_cvt_bindings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
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
11+
import System.Drawing
12+
1113
from typing import Any
1214

1315
from diffCheck import diffcheck_bindings # type: ignore
@@ -73,7 +75,7 @@ def cvt_dfcloud_2_rhcloud(df_cloud):
7375

7476
df_cloud_points = [rg.Point3d(pt[0], pt[1], pt[2]) for pt in df_cloud_points]
7577
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]
78+
df_cloud_colors = [System.Drawing.Color.FromArgb(c[0], c[1], c[2]) for c in df_cloud_colors]
7779

7880
rh_cloud = rg.PointCloud()
7981

0 commit comments

Comments
 (0)