Ovis_3D_Line_Endpoints_Get()

摘要

返回 3D 线的起点和终点位置。

语法

Ovis_3D_Line_Endpoints_Get (line_dec_ptr, from_ptr, to_ptr)
参数 类型 说明
line_dec_ptr OvisT_3D_Line * 线
from_ptr OvisT_3D_Position * 线的起点
to_ptr OvisT_3D_Position * 线的终点

返回类型

OvisT_Compcode

若提供的对象是有效的线,返回 OvisC_Compcode_Success;否则返回 OvisC_Compcode_Failure。

头文件

ovis_decoration.h

详情

此函数返回 3D 线的起点和终点位置。该线可以是实线或分段线。

示例

OvisT_3D_Position               from, to;
OvisT_3D_Line                   * line;

/*… line created at some point */

Ovis_3D_Line_Endpoints_Get (line, &from, &to);

错误

  • 'from' 位置值的返回地址为 NIL。
  • 'to' 位置值的返回地址为 NIL。
  • Decoration 为 NIL。
  • Decoration 不是 3D Line。

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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