SilverScreen Solid Modeler

ROUND_NODE

ROUND_NODE

Previous topic Next topic  

ROUND_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.ROUND_NODE

 

Structure

A SilverSharp.ROUND_NODE object stores information relevant to a SilverScreen circle, ellipse, or arc  primitive

 

 

 

C# Code

 

 class ROUND_NODE sealed : PRIM_NODE

    {

    ROUND_NODE(ROUND_NODE rhs);

    ROUND_NODE(string round_path);

 

    enum RoundTypes

       {

       Circle = 1,

       Arc    = 2,

       };

 

 

    property SS_XYZ       horizontal { get; }

    property SS_XYZ       vertical   { get; }

 

    readonly SURFACE_NODE sn;

    readonly TEXTURE_DATA texture;

    readonly SS_XYZ       CenterPoint;

 

    property uint         center      { get; }

    property double       start_angle { get; }

    property double       stop_angle  { get; }

    property SS_RGB       surface_rgb { get; }

    property SS_RGB       round_rgb   { get; }

    property uint         surface_pattern_number { get; }

    property WidthStyle   round_width_style      { get; }

 

    property RoundTypes   round_type { get; }

    };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC ROUND_NODE:

 

Name

Description

horizontal

A horizontal axis direction vector

vertical

A vertical axis direction vector

sn

A SURFACE_NODE reference, 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.

texture

A TEXTURE_DATA reference, 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.

center

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

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.

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

A WidthStyle object that contains edge width and style index information for the primitive.

round_type

A RoundTypes enumeration that distinguishes between a circle and arc. A SilverSharp programmer may prefer  the IsArc and IsCircle inherited properties.

 

The following read-only properties extend ROUND_NODE for SilverSharp:

 

Name

Description

CenterPoint

The 3D point that is the center of the circle, arc, or ellipse

 

 

Methods

Name

Description

ROUND_NODE

Constructors to initialize the object

 

 

Remarks

A circle can be differentiated from an arc by checking the SilverSharp.PRIM_NODE properties IsCircle or IsArc. Also, the IsClosed property indicates a circle.

 

A SilverSharp.ROUND_NODE inherits from a SilverSharp.PRIM_NODE and therefore includes those properties and methods as well; for instance, Path, Type, and PrimBits are inherited properties of a SilverSharp.PRIM_NODE.

 

Note: A SilverSharp.ROUND_NODE is a SilverSharp.PRIM_NODE, but the reverse is not true.

 

 

See Also

PRIM_NODE, Primitive Types, SilverC ROUND_NODE