Ovis_3D_Area_Point_Nth_Get()

摘要

从定义 3D 区域的点数组中获取指定的点。

语法

Ovis_3D_Area_Point_Nth_Get (area_dec_ptr, index, point)
参数 类型 说明
area_dec_ptr OvisT_3D_Area * 目标区域
index unsigned int 所需点的索引
point_ptr 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 */

status = Ovis_3D_Area_Point_Nth_Get (area, 0, &point);

错误

  • 装饰对象为 NIL。
  • 用于返回点数据的地址为 NIL。
  • 装饰对象不是 3D 区域。
  • index <index> 必须小于点的数量(<num_points>)

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com