Ovis_3D_Area_Point_Nth_Set()
摘要
设置定义 3D 区域的点数组中指定的点。
语法
Ovis_3D_Area_Point_Nth_Set (area_dec_ptr, index, point)
| 参数 | 类型 | 说明 |
|---|---|---|
area_dec_ptr |
OvisT_3D_Area * |
目标区域 |
index |
unsigned int |
要设置的点的索引 |
point |
OvisT_3D_Position |
指定点的新值,采用地心或大地坐标 |
返回类型
OvisT_Compcode
若成功设置该点,返回 OvisC_Compcode_Success;否则返回 OvisC_Compcode_Failure。
头文件
ovis_decoration.h
详情
无。
示例
OvisT_3D_Position point;
OvisT_3D_Area * area;
OvisT_Compcode status;
/* … area created at some point */
Ovis_3D_Position_Geodetic_Set (&point, 38.98176, -77.09558, 123);
status = Ovis_3D_Area_Point_Nth_Set (area, 0, point);
错误
- 装饰对象为 NIL。
- 该点必须是地心或大地坐标位置。
- 装饰对象不是 3D 区域。
- index
<index>必须小于点的数量(<num_points>)
参考
- 使用函数
Ovis_3D_Area_Point_Nth_Get()可从定义 3D 区域的点数组中获取单个点。