|
||
BOOLEAN surface_area_prim(OBJECT_NODE *obj, PRIM_NODE *prim, double *area)
OBJECT_NODE *obj; // A pointer to an OBJECT_NODE PRIM_NODE *prim; // A pointer to a PRIM_NODE double *area; // A pointer to a double-precision floating-point value
|
|
|||
Synopsis |
#include "silver.h" #include "ssnodes.h"
The surface_area_prim function calculates the surface area of a closed primitive.
|
|
||
Parameters |
obj is a pointer to the object that contains the primitive whose area is to be measured prim is a pointer to the closed primitive whose area is to be measured area is a pointer to the double that is to receive the calculated area
|
|
||
Return Value |
surface_area_prim returns TRUE if all 3 parameters are valid, and if prim is a pointer to a closed primitive. It returns FALSE otherwise.
|
|
||
See Also |
|
|
||
Example |
The following code allows the user to pick a polygon, then measures the surface area and displays it in a message
: |
|