pcimport VEX function
Imports channel data from a point cloud inside a pciterate or a pcunshaded loop.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
See also: pcopen, pciterate, pcunshaded, pcexport
-
int pcimport(int handle, string channel_name, int value&) -
int pcimport(int handle, string channel_name, float value&) -
int pcimport(int handle, string channel_name, vector value&) -
int pcimport(int handle, string channel_name, vector4 value&) -
int pcimport(int handle, string channel_name, matrix value&) -
int pcimport(int handle, string channel_name, matrix3 value&)
While looping using pciterate or pcunshaded, use these functions to import data from the point cloud file into the value variable.
The function will return 1 if the import succeeded or 0 if the import failed (usually due to the given channel name not existing).
There are two special channel names you can import:
|
|
The number of the point being processed. |
|
|
The distance of the point being processed from the query point. This is only available when iterating over unshaded points. |
This function is only valid while looping with pciterate or pcunshaded.