Vex - Generate @Cd threw intersecting with a mesh
2101 5 0- Christoph_H_
- Member
- 48 posts
- Joined: 2月 2018
- Offline
- BabaJ
- Member
- 2048 posts
- Joined: 9月 2015
- Offline
- Aizatulin
- Member
- 480 posts
- Joined: 7月 2005
- Offline
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.
“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_
- Member
- 48 posts
- Joined: 2月 2018
- Offline
- Aizatulin
- Member
- 480 posts
- Joined: 7月 2005
- Offline
- Nicolas Longchamps
- Member
- 37 posts
- Joined: 8月 2015
- Offline
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.
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.
Edited by Nicolas Longchamps - 2018年5月16日 16:26:18
-
- Quick Links