Skip to content

Commit 73c491b

Browse files
committed
prim, remove, add attrib
1 parent 70fe6e9 commit 73c491b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

example/CallPython_Source7.hipnc

109 KB
Binary file not shown.

example/gss_call_python_example.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
def main(points, vertices, prims, detail):
88

9+
#############################
10+
# Point Manipulation
11+
#############################
12+
913
# move points in Y direction
1014
points['P.Y'] += 1
1115

@@ -22,9 +26,27 @@ def main(points, vertices, prims, detail):
2226
# add point atribute
2327
points['TestAttrib'] = 'abc'
2428

29+
#############################
30+
# Vertex Manipulation
31+
#############################
32+
2533
# add vertex atribute
2634
vertices['NV'] = 'testing...'
2735

36+
#############################
37+
# Primitive Manipulation
38+
#############################
39+
40+
# add prim attribute
41+
prims['foo'] = 'myprim'
42+
43+
# delete prim number 28
44+
prims.drop([28], inplace=True)
45+
46+
#############################
47+
# Detail Manipulation
48+
#############################
49+
2850
return (points, vertices, prims, detail)
2951

3052

0 commit comments

Comments
 (0)