I'm not sure how to correctly set it up.
float surfacedist(<geometry>geometry, string ptgroup, string P_attribute, int search_pt, float max_radius, int &closest_pt, string distance_metric)
Has anyone used the new surfacedist vex function?
2656 3 2- ouroboros1221
- Member
- 79 posts
- Joined: Feb. 2016
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
surfacedist() lets you measure the distance (f@dist) between a search point and a group of points ('to_be_found') on the same surface and also returns the closest point (i@pt_close) from that group to your search point within a certain radius (1.2).
It can probably also measure between other attributes than position ('P') such as colors or UV coordinates. And it can either run over edges or across polygons ('surface').
int pt_search = 1004; i@pt_close = -1; f@dist = surfacedist(0, 'to_be_found', 'P', pt_search, 1.2, @pt_close, 'surface');
It can probably also measure between other attributes than position ('P') such as colors or UV coordinates. And it can either run over edges or across polygons ('surface').
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- ouroboros1221
- Member
- 79 posts
- Joined: Feb. 2016
- Offline
- mestela
- Member
- 1716 posts
- Joined: May 2006
- Offline
-
- Quick Links