SilverScreen Solid Modeler

PRIM_NODE

PRIM_NODE

Previous topic Next topic  

PRIM_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.PRIM_NODE

 

Structure

All primitives in SilverScreen derive from a SilverSharp.PRIM_NODE.

 

 

 

C# Code

 

 abstract class PRIM_NODE

    {

    property PrimBits      bits       { get; }

    property uint          id         { get; }

    property OBJECT_NODE   parent     { get; }

    property PRIM_NODE     next_node  { get;}

    property PRIM_NODE     prev_node  { get; }

    property PRIM_NODE     first_hole { get; }

 

    property PrimList      Holes      { get; }

 

    property bool IsArc      { get; }

    property bool IsBezier   { get; }

    property bool IsBPoint   { get; }

    property bool IsCircle   { get; }

    property bool IsLine     { get; }

    property bool IsMesh     { get; }

    property bool IsPoint    { get; }

    property bool IsPolygon  { get; }

    property bool IsPolyline { get; }

    property bool IsSpline   { get; }

    property bool IsSPoint   { get; }

 

    property string Path  { get; }

    property string Type  { get; }

 

    string ToString();

    bool   Equals(System.Object obj);

 

    static  bool IsEmpty(PRIM_NODE prim);

    };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC PRIM_NODE.

 

Name

Description

bits

Bit flags of the primitive object

id

Primitive identification number

parent

Object entity that contains the primitive object

next_node

The next sibling of the primitive in the parent object

prev_node

The previous sibling of the primitive in the parent object

first_hole

The first hole contained by the primitive

 

The following read-only properties extend PRIM_NODE for SilverSharp:

 

Name

Description

IsArc

IsBezier

IsBPoint

IsCircle

IsLine

IsMesh

IsPoint

IsPolygon

IsPolyline

IsSpline

IsSPoint

Property is true if primitive is the type indicated, and otherwise false.

Holes

Enumerates the list of holes contained by the primitive

Path

A string that is the SilverScreen path to the primitive (i.e. "\obj1.1")

Type

A string that is the English keyword for the primitive type (i.e. "polygon", or "line")

 

 

Methods

Name

Description

ToString

Formats the primitive as a string (i.e. "polygon \obj1.1")

Equals

Checks for equality with an object instance

IsEmpty

Checks if the primitive reference refers to an empty primitive

 

 

See Also

SilverC PRIM_NODE, Primitive Types