Search - User list
Full Version: Vex - Generate @Cd threw intersecting with a mesh
Root » Houdini Indie and Apprentice » Vex - Generate @Cd threw intersecting with a mesh
Christoph_H_
Hello,
how is it possible to generate @Cd threw intersecting with a mesh?
In the area from the second mesh should be colord points or primitives on the first mesh.

thanks.
BabaJ
Keep your eyes peeled for others methods you may like better.

More than one way to do it.
Aizatulin
Hi,

“intersect_all” can help you aswell. If you count the number of intersections of a ray in any direction, it should be odd inside and even outside. But sometimes I've ran into numerical problems, if the intersection points are close together. You can minimize this problem by decreasing the tolerance.
Christoph_H_
Thank you both very much.
Very instructive.
Aizatulin
Sure man ,

I just found out, that the ray length has not been calculated correctly, so I've attached a fixed version.
Nicolas Longchamps
Volumes would be great for this. It might be more efficient as you can control the sampling of the incoming geo and it should scale really well with geometric complexity.



Simply use a volume sample in a point VOP on the object you want colors on. Pipe in the volume and sample it at the point position.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB