Ovis_Decoration_3D_Triangle_Create()

Abstract

Creates a 3D triangle.

Syntax

Ovis_Decoration_3D_Triangle_Create (a, b, c, color, filled, layer_ptr, destroy_proc, user_state_ptr)
Argument Type Description
a OvisT_3D_Position Corner a of the triangle
b OvisT_3D_Position Corner b of the triangle
c OvisT_3D_Position Corner c of the triangle
color PrgT_Color Color
filled OvisT_Boolean Indicates fill
layer_ptr OvisT_Layer * Ovis layer
destroy_proc OvisT_Decoration_State_Destroy_Proc Destroys the data associated with the object and deallocates its memory
user_state_ptr void * Optional user-provided state of the decoration

Return Type

OvisT_3D_Triangle *

The 3D triangle

ovis_decoration.h

Details

This function creates the Ovis 3D triangle. It specifies the attributes of the triangle.

The triangle has an initial transparency of 0, a solid pattern, and is not flashing.

Example

OvisT_3D_Position						  a, b, c;
OvisT_3D_Triangle 						  * triangle;
PrgT_Color						  color = prg_color_from_string ("red");

Ovis_3D_Position_Geodetic_Set (&a, 0, 0, 100);
Ovis_3D_Position_Geodetic_Set (&b, 0, 0, 200);
Ovis_3D_Position_Geodetic_Set (&c, 0.001, 0.001, 150);
triangle = Ovis_Decoration_3D_Triangle_Create (a, b, c, color, OvisC_True, OPC_NIL,
		OPC_NIL, OPC_NIL);

Errors

  • None

Reference

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