目录
distance —— 返回两点间距离
distance2 —— 返回两点间距离平方
surfacedist —— 查找点到点组的距离(沿几何体表面)
xyzdist —— 查找点到表面最近点的距离
uvdist —— 在uv空间查找uv坐标到几何体的距离
planepointdistance —— 计算给定点到平面距离和最近点位置
getbounds —— 返回指定文件的几何体边界框
getbbox —— 将两矢量设置为几何体边界的角点
getbbox_center —— 返回边界框的中心点
getbbox_max —— 返回边界框的最大值
getbbox_min —— 返回边界框的最小值
getbbox_size —— 返回边界框的尺寸
getpointbbox —— 将两矢量设置为几何体边界的角点
getpointbbox_center —— 返回边界框的中心点
getpointbbox_max —— 返回边界框的最大值
getpointbbox_min —— 返回边界框的最小值
getpointbbox_size —— 返回边界框的尺寸
relbbox —— 返回点在边界框内的相对位置
relpointbbox —— 返回点在边界框内的相对位置
distance —— 返回两点间距离
float distance(vector2 a, vector2 b) float distance(vector a, vector b) float distance(vector4 a, vector4 b)
distance2 —— 返回两点间距离平方
float distance2(vector2 a, vector2 b) float distance2(vector a, vector b) float distance2(vector4 a, vector4 b)
surfacedist —— 查找点到点组的距离(沿几何体表面)
float surfacedist(<geometry>geometry, string ptgroup, string P_attribute, int search_pt, int &closest_pt, string distance_metric) float surfacedist(<geometry>geometry, string ptgroup, string P_attribute, int search_pt, float max_radius, int &closest_pt, string distance_metric)
xyzdist —— 查找点到表面最近点的距离
float xyzdist(<geometry>geometry, vector origin)
float xyzdist(<geometry>geometry, vector origin, int &prim, vector &uv) float xyzdist(<geometry>geometry, vector origin, int &prim, vector &uv, float maxdist)
float xyzdist(<geometry>geometry, string primgroup, vector origin) float xyzdist(<geometry>geometry, string primgroup, vector origin, int &prim, vector &uv) float xyzdist(<geometry>geometry, string primgroup, vector origin, int &prim, vector &uv, float maxdist)
uvdist —— 在uv空间查找uv坐标到几何体的距离
float uvdist(<geometry>geometry, string uvname, vector uv, int &prim, vector &primuv) float uvdist(<geometry>geometry, string uvname, vector uv, int &prim, vector &primuv, float maxdist) float uvdist(<geometry>geometry, string primgroup, string uvname, vector uv, int &prim, vector &primuv) float uvdist(<geometry>geometry, string primgroup, string uvname, vector uv, int &prim, vector &primuv, float maxdist)
planepointdistance —— 计算给定点到平面距离和最近点位置
float planepointdistance(vector plane_pos, vector plane_normal, vector point_pos, vector &intersect_pos)
getbounds —— 返回指定文件的几何体边界框
int getbounds(string filename, vector &min, vector &max) int getbounds(string filename, string group, vector &min, vector &max)
- 应该使用getbbox();
getbbox —— 将两矢量设置为几何体边界的角点
//包括sphere和volume void getbbox(<geometry>geometry, vector &min, vector &max)
//在指定面组内计算,空组表示所有面 void getbbox(<geometry>geometry, string primgroup, vector &min, vector &max)
//已废弃 void getbbox(vector &min, vector &max)
getbbox_center —— 返回边界框的中心点
vector getbbox_center(<geometry>geometry)
vector getbbox_center(<geometry>geometry, string primgroup)
getbbox_max —— 返回边界框的最大值
vector getbbox_max(<geometry>geometry)
vector getbbox_max(<geometry>geometry, string primgroup)
getbbox_min —— 返回边界框的最小值
vector getbbox_min(<geometry>geometry)
vector getbbox_min(<geometry>geometry, string primgroup)
getbbox_size —— 返回边界框的尺寸
vector getbbox_size(<geometry>geometry)
vector getbbox_size(<geometry>geometry, string primgroup)
getpointbbox —— 将两矢量设置为几何体边界的角点
void getpointbbox(<geometry>geometry, vector &min, vector &max) void getpointbbox(<geometry>geometry, string pointgroup, vector &min, vector &max)
- 与getbbox相同,但此函数仅针对point;
getpointbbox_center —— 返回边界框的中心点
vector getpointbbox_center(<geometry>geometry) vector getpointbbox_center(<geometry>geometry, string pointgroup)
getpointbbox_max —— 返回边界框的最大值
vector getpointbbox_max(<geometry>geometry) vector getpointbbox_max(<geometry>geometry, string pointgroup)
getpointbbox_min —— 返回边界框的最小值
vector getbbox_min(<geometry>geometry) vector getbbox_min(<geometry>geometry, string primgroup)
getpointbbox_size —— 返回边界框的尺寸
vector getpointbbox_size(<geometry>geometry) vector getpointbbox_size(<geometry>geometry, string pointgroup)
relbbox —— 返回点在边界框内的相对位置
vector relbbox(<geometry>geometry, vector position) vector relbbox(<geometry>geometry, string primgroup, vector position)
//此形式已被废弃 vector relbbox(vector position)
relpointbbox —— 返回点在边界框内的相对位置
vector relpointbbox(<geometry>geometry, vector position) vector relpointbbox(<geometry>geometry, string pointgroup, vector position)