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。
参考
- 使用函数
Ovis_3D_Line_Endpoints_Set()修改线的端点。