Search the Community
Showing results for tags 'struct'.
-
Hi, I was wondering if could be possible to define a struct in the outer code of the snippet and export this data for each class' items of a geometry (per point, prims, etc...)? Below is an example of a Wrangle running over Points with the "outer code" from wrangle/attribvop/snippet expose...
-
Hello, I'm a newbie with vex and I'm trying to create an array of structs. In my wrangle node I defined the struct in the outer code section as suggested here my struct looks like this: struct node { int pt; int nbrs[ ]; } In my code I later declare...
-
Hi. Am i right, saying that current (H14) vex struct implementation doesn't allow default values initialization? C-style initialization won't work. struct S{ S(): myval(0) {} int myval; } I must be wanting to much If only we can get this, wonderful world of OOP will open its doors I...
-
Hi! I'm trying to organize some of my vex shaders. And trying to use struct for that. But this kind of code crashes my mantra: struct RayInfo { float clr; } surface structVar(){ RayInfo ray = { 0.0 }; if( ptransform("space:world", P )[2] < 0.0 ) ray.clr = 1.0; Cf = ray.clr; }[...