F e z

F e z

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

VEX transform matrix from 4 vectors (frame + translation) April 24, 2015, 8:37 p.m.

{} array does not take variables. Use set() instead

pcopen in cvex April 4, 2015, 6:26 p.m.

Instead of inputpath you can use “opbj/geo1/OUT_PC_LOOKUP” instead. The principal should be the same no matter what contex you are. I use that inside DOP where I cannot rely on input connections to lookup pointcloud

pcopen in cvex April 1, 2015, 1:43 a.m.

Is this what you are after?


int handle = pcopen(1, “P”, @P, 0.2, 2);
// 0.2 is radius
// 2 is maxpoints

if (pcnumfound(handle)>0) {
vector nor = pcimportbyidxv(handle, “N”, 0);
vector pos = pcimportbyidxv(handle, “P”, 0);

vector dir = normalize(v@P - pos);

if (dot(dir, normalize(nor)) > 0.9) {
//do something here…..
}
}