STK Graphics PrimitivesSend comments on this topic.
Set Method (IAgStkGraphicsSolidPrimitive)
See Also
Positions
An array containing the positions of the solid in the order x, y, z.
Normals
An array containing the normals of the mesh in the order x, y, z.
Indices
An array of integers containing the indices into positions and normals. A set of x, y, and z elements is considered a single index.
OutlineIndices
An array of integers containing the indices into positions that define an outline of the solid. A set of x, y, and z elements is considered a single index.
WindingOrder
The orientation of front-facing triangles.
BoundingSphere
The bounding sphere that encompasses the solid.
Closed
Indicates if the solid is closed. For example, a box with six faces is closed. If one face is removed, the box is open.
Windows





Windows & Linux

Description

Defines the solid using the specified parameters. The solid is rendered in the primitive's Reference Frame.

Syntax

[Visual Basic .NET]
Public Sub Set( _
    ByVal Positions As System.Array, _
    ByVal Normals As System.Array, _
    ByVal Indices As System.Array, _
    ByVal OutlineIndices As System.Array, _
    ByVal WindingOrder As AgEStkGraphicsWindingOrder, _
    ByVal BoundingSphere As IAgStkGraphicsBoundingSphere, _
    ByVal Closed As Boolean _
)
[C#]
public void Set(
    System.Array Positions,
    System.Array Normals,
    System.Array Indices,
    System.Array OutlineIndices,
    AgEStkGraphicsWindingOrder WindingOrder,
    IAgStkGraphicsBoundingSphere BoundingSphere,
    bool Closed
);
[Managed C++]
public: void Set(
    System::Array ^ Positions,
    System::Array ^ Normals,
    System::Array ^ Indices,
    System::Array ^ OutlineIndices,
    AgEStkGraphicsWindingOrder WindingOrder,
    IAgStkGraphicsBoundingSphere ^ BoundingSphere,
    bool Closed
);
[Unmanaged C++]
public: HRESULT Set(
    SAFEARRAY * * Positions,
    SAFEARRAY * * Normals,
    SAFEARRAY * * Indices,
    SAFEARRAY * * OutlineIndices,
    AgEStkGraphicsWindingOrder WindingOrder,
    IAgStkGraphicsBoundingSphere * BoundingSphere,
    VARIANT_BOOL Closed
);
[Java]
public void set(
    AgSafeArray Positions,
    AgSafeArray Normals,
    AgSafeArray Indices,
    AgSafeArray OutlineIndices,
    AgEStkGraphicsWindingOrder WindingOrder,
    IAgStkGraphicsBoundingSphere BoundingSphere,
    bool Closed
);

Parameters

Positions
An array containing the positions of the solid in the order x, y, z.
Normals
An array containing the normals of the mesh in the order x, y, z.
Indices
An array of integers containing the indices into positions and normals. A set of x, y, and z elements is considered a single index.
OutlineIndices
An array of integers containing the indices into positions that define an outline of the solid. A set of x, y, and z elements is considered a single index.
WindingOrder
The orientation of front-facing triangles.
BoundingSphere
The bounding sphere that encompasses the solid.
Closed
Indicates if the solid is closed. For example, a box with six faces is closed. If one face is removed, the box is open.

Remarks

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.