SilverScreen Solid Modeler

ROUND_NODE        

ROUND_NODE        

Previous topic Next topic  

ROUND_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

ROUND_NODE

 

Structure

A primitive-level data type that stores the data associated with a SilverScreen circle, arc, or ellipse.

 

 

 struct ROUND_NODE : PRIM_NODE

    {

    SS_XYZ         horizontal;

    SS_XYZ         vertical;

    double         start_angle;

    double         stop_angle;

    SURFACE_NODE   *sn;

    RGB            surface_rgb;

    RGB            round_rgb;

    int            surface_pattern_number;

    USINT          round_width_style;

    VERTEX         center;

    int            round_type;

    TEXTURE_DATA   *texture;

    } ;

 

 


Members

Member

Description

horizontal

Displacement from the center indicating the horizontal direction of the circle, ellipse, or arc

vertical

Displacement from the center indicating the vertical direction of the circle, ellipse, or arc

start_angle

When the primitive is an arc or elliptical arc, this stores the start angle in radians.

stop_angle

When the primitive is an arc or elliptical arc, this stores the stop angle in radians.

sn

A SURFACE_NODE pointer, that if not NULL, stores the surface properties for rendering this primitive. When this member is NULL, then the surface properties from the parent OBJECT_NODE will be used to render this primitive.

surface_rgb

The fill color for closed circles and ellipses

round_rgb

The edge color for circles, ellipses, and arcs.

surface_pattern_number

The surface pattern index for closed circles and ellipses, or 0 if there is none.

round_width_style

The edge width and style index for the circle, ellipse, or arc.

center

A VERTEX number from the OBJECT_NODE that contains the circle, ellipse, or arc and which stores the center-point of the primitive.

round_type

A value that is 1 if the primitive is a circle or ellipse, and 2 if the primitive is an arc or elliptical arc.

texture

A TEXTURE_DATA pointer, that if not NULL, stores the texture properties for rendering this primitive. When this member is NULL, then the texture properties from the parent OBJECT_NODE will be used to render this primitive.

 

 

Remarks

A ROUND_NODE is a PRIM_NODE that has the BITS_CIRCLE or BITS_ARC flag enabled in 'bits'.To determine if a ROUND_NODE is a circle or ellipse, check for the presence of BITS_CIRCLE on 'bits' or a value of 1 for 'round_type'.

 

To determine if a ROUND_NODE is closed, check for the presence of BITS_CLOSED on 'bits' or a value of 2 for 'round_type'. To determine if a ROUND_NODE is an arc or elliptical arc, check for the presence of BITS_ARC on 'bits'.

 

See Also

xyz_of_vertex, point_on_round, get_endpoints

 

Header

silver.h, ssnodes.h