SilverScreen Solid Modeler

draw_triangle

draw_triangle

Previous topic Next topic  

draw_triangle

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int draw_triangle ( SS_XYZ *pt1, SS_XYZ *pt2, SS_XYZ *pt3 )

 

SS_XYZ *pt1;           // address of first point of polygon

SS_XYZ *pt2;           // address of second point of polygon

SS_XYZ *pt3;           // address of third point of polygon

 

 




Synopsis

#include "silver.h"

 

The draw_triangle function adds a three-sided polygon to the drawing database in the current object.

 

 

Parameters

pt1, pt2 and pt3 are the addresses of the first, second and third points in the polygon, respectively.

 

 

Return Value

draw_triangle returns FALSE if a memory allocation fails in the process of building the polygon; otherwise, TRUE is returned.

 

 

Comments

draw_triangle is intended as a faster replacement to the script command sequence:

Command Script

 

 BEGIN POLYGON

 POINT <xyz1>

 POINT <xyz2>

 POINT <xyz3>

 END POLYGON

 

 

 

See Also

draw_quad , draw_polygon