SilverScreen Solid Modeler

SPOINT_NODE        

SPOINT_NODE        

Previous topic Next topic  

SPOINT_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SPOINT_NODE

 

Structure

A special (see remarks) primitive-level data type that stores the data associated with a SilverScreen spline control point.

 

   

 struct SPOINT_NODE

    {

    // All members of PRIM_NODE except first_hole pointer

 

    USINT32         bits;

    int             id;

    PRIM_NODE       *next_node;

    PRIM_NODE       *prev_node;

    OBJECT_NODE     *parent

 

    // spline control-point-specific members

 

    VERTEX          point;

    int             knots;

    };

 

 


Members

(point-specific)

Member

Description

point

A VERTEX number from the OBJECT_NODE that contains the point and which stores the spline control point location.

knots

An integer value between 0 and 3 that represents the amount of tension at this spline control point. There is no additional tension when the value is 0, and there is maximum tension when the value is 3. At maximum tension a straight line will be drawn between control points.

 

 

Remarks

An SPOINT_NODE is linked into an OBJECT_NODE as a PRIM_NODE, and it is in all respects but one. An SPOINT_NODE does not have a first_hole pointer, which is an homage paid to memory at the expense of clarity. What this means in practice is that you should not reference the 'first_hole' pointer of a PRIM_NODE until you are sure the PRIM_NODE is a closed primitive (BITS_CLOSED will be enabled on the 'bits' member).

 

See Also

xyz_of_vertex

 

Header

silver.h, ssnodes.h