AGI STK Graphics 11 Send 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.





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( _
   ByRef Positions As System.Array, _
   ByRef Normals As System.Array, _
   ByRef Indices As System.Array, _
   ByRef OutlineIndices As System.Array, _
   ByVal WindingOrder As AgEStkGraphicsWindingOrder, _
   ByVal BoundingSphere As IAgStkGraphicsBoundingSphere, _
   ByVal Closed As Boolean _
) 

[C#]
public void Set(
ref System.Array Positions,
ref System.Array Normals,
ref System.Array Indices,
ref 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
);

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
Member Value Description
eStkGraphicsWindingOrderCounterClockwise 0 Positions or triangles are defined in counter-clockwise order.
eStkGraphicsWindingOrderClockwise 1 Positions or triangles are defined in clockwise order.
eStkGraphicsWindingOrderCompute 2 The winding order is unknown and should be computed. For best performance, only use this value if you do not know the actual winding order.
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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1