Houdini VEX : 円を作る
https://gyazo.com/f692fe033dbcda2a27d78e611e44a644
code:vex
int n = chi("point_num");
int points[] = {};
for (int i = 0; i < n; i++){
float x = cos(i * 2.0 * $PI / (n-1));
float y = sin(i * 2.0 * $PI / (n-1));
int pt = addpoint(geoself(), set(x, 0, y));
append(points, pt);
}
addprim(geoself(), "polyline", points);