SilverScreen Solid Modeler

draw_quad

draw_quad

Previous topic Next topic  

draw_quad

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int draw_quad ( SS_XYZ *pt1, SS_XYZ *pt2, SS_XYZ *pt3, SS_XYZ *pt4 )

 

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

SS_XYZ *pt4;       // address of fourth point of polygon

 

 




Synopsis

#include "silver.h"

 

The draw_quad function adds a four-sided polygon to the drawing database in the current object.

 

 

Parameters

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

 

 

Return Value

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

 

 

Comments

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

Command Script

 

 BEGIN POLYGON

 POINT <xyz1>

 POINT <xyz2>

 POINT <xyz3>

 POINT <xyz4>

 END POLYGON

 

 

 

See Also

draw_triangle , draw_polygon