SilverScreen Solid Modeler

OBJECT_NODE        

OBJECT_NODE        

Previous topic Next topic  

OBJECT_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

OBJECT_NODE

 

Structure

An entity-level data type that stores the data associated with a SilverScreen object.

 

 

 struct OBJECT_NODE : BOS_NODE

    {

    SCHEMA_NODE     *first_schema;

    TAG_NODE        *first_tag;

    EDGE_BLOCK      *first_eblock;

    VERTEX_BLOCK    *first_vblock;

    PRIM_NODE       *first_node;

    PRIM_NODE       *last_node;

    USINT32         primitives;

    int             high_id;

    EDGE            edges;

    VERTEX          vertices;

    double          pattern_scale;

    RGB             pattern_rgb;

    SURFACE_NODE    sn;

    TEXTURE_DATA    texture;

    SS_XYZ          t_horz;

    SS_XYZ          t_vert;

    SS_XYZ          t_base;

 

    // Billboard/sprite data

 

    SPRITE_DATA     sprite;

    };

 

 

 

Members

Member

Description

first_schema

A SCHEMA_NODE pointer to the first schema associated with the object

first_tag

A TAG_NODE pointer to the first tag associated with the object

first_eblock

A pointer to the first edge-block table. Developers should use xyz1_of_edge and xyz2_of_edge to retrieve edge data.

first_vblock

A pointer to the first vertex-block table. Developers are encouraged to use xyz_of_vertex to retrieve vertex data

first_node

A PRIM_NODE pointer to the first primitive in the object.

last_node

A PRIM_NODE pointer to the last primitive in the object.

primitives

Bit flags with the following meanings when BITS_HIGHLOW is set on 'bits1'.

 

Constant

Meaning

PM_LINE

The object contains at least one line

PM_POLYGON

The object contains at least one polygon

PM_SPLINE

The object contains at least one spline curve

PM_WIDE_LINE

The object contains at least one primitive that uses a wide linestyle

PM_DEEPLINE

The object contains at least one line that belongs to a polygon or polyline

PM_DEEPARC

The object contains at least one arc that belongs to a polygon or polyline

PM_BEZIER

The object contains at least one bezier curve

PM_HOLE

The object contains at least one primitive with a hole in it

PM_MESH

The object contains at least one bezier mesh surface

PM_POLYLINE

The object contains at least one polyline

PM_POINT

The object contains at least one 3D point primitive

PM_CIRCLE

The object contains at least one circle

PM_ARC

The object contains at least one arc

PM_PARC

The object contains at least one phantom arc

PM_PCIRCLE

The object contains at least one phantom circle

 

high_id

If the object contains primitives, this is the largest identifier used. This number is used to assign primitive identifiers that do not conflict.

edges

The number of edges in the object (a cube would have 12).

vertices

The number of vertices in the object (a cube would have 8).

pattern_scale

A scaling factor that is applied to all patterns of all primitives contained by the object.

pattern_rgb

The RGB color that is used to over-ride all patterns of all primitives contained by the object when bits2 has the BITS_PATTERN_COLOR flag set.

sn

A SURFACE_NODE member that contains surface properties associated with the object and used by the rendering system.

texture

A TEXTURE_DATA member that contains texture properties associated with the object and used by the rendering system.

t_horz

A displacement vector that is the texture space (t-space) horizontal axis.

t_vert

A displacement vector that is the texture space (t-space) vertical axis.

t_base

An SS_XYZ (3D point) that is the texture space (t-space) basepoint.

sprite

A SPRITE_DATA member that contains sprite information about the object.

 

 

See Also

BOS_NODE, sys_object, get_bos, xyz1_of_edge, xyz2_of_edge, xyz_of_vertex

 

Header

silver.h, ssnodes.h