Search - User list
Full Version: how to partition by primitives
Root » PDG/TOPs » how to partition by primitives
popple
how to access data of upstream to build work items

for example `nprims` of upstream to build `nprims` number of work items
wesw
if you want to create 1 workitem per primitive, you can do this by using geometryImport topnode and set the data extraction, "copy from class" to primitives. You can set the source to be your upstream output file.

And you can access any attribute of a cooked workitem in hscript with `@`... so `@sopname` will evaluate to box1 in this example.
popple
wesw
if you want to create 1 workitem per primitive, you can do this by using geometryImport topnode and set the data extraction, "copy from class" to primitives. You can set the source to be your upstream output file.

And you can access any attribute of a cooked workitem in hscript with `@`... so `@sopname` will evaluate to box1 in this example.
thanks a lot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.