ImageGear for .NET
Init Method (ImGearVectorEntityGeometry)




Type of the geometry primitives. See enumeration ImGearVectGeometryType enumeration for possible values.
Count of vertices in the geometry. Point, normal and color arrays must have the same amount of elements in case of usage.
Color alignment in the color array. Has effect only if useColors is true.
If true than the normals are taken into account when displaying the geometry. Normals must be set before displaying in this case.
If true then the local colors are taken into account when displaying the geometry. Colors must be set before displaying in this case.
Initializes the geometry with the geometry type, point count, color alignment and flags of using colors and normals.
Syntax
'Declaration
 
Public Sub Init( _
   ByVal geometryType As ImGearVectGeometryType, _
   ByVal pointCount As Integer, _
   ByVal colorAlignment As Integer, _
   ByVal useNormals As Boolean, _
   ByVal useColors As Boolean _
) 
'Usage
 
Dim instance As ImGearVectorEntityGeometry
Dim geometryType As ImGearVectGeometryType
Dim pointCount As Integer
Dim colorAlignment As Integer
Dim useNormals As Boolean
Dim useColors As Boolean
 
instance.Init(geometryType, pointCount, colorAlignment, useNormals, useColors)
public void Init( 
   ImGearVectGeometryType geometryType,
   int pointCount,
   int colorAlignment,
   bool useNormals,
   bool useColors
)
public: void Init( 
   ImGearVectGeometryType geometryType,
   int pointCount,
   int colorAlignment,
   bool useNormals,
   bool useColors
) 
public:
void Init( 
   ImGearVectGeometryType geometryType,
   int pointCount,
   int colorAlignment,
   bool useNormals,
   bool useColors
) 

Parameters

geometryType
Type of the geometry primitives. See enumeration ImGearVectGeometryType enumeration for possible values.
pointCount
Count of vertices in the geometry. Point, normal and color arrays must have the same amount of elements in case of usage.
colorAlignment
Color alignment in the color array. Has effect only if useColors is true.
useNormals
If true than the normals are taken into account when displaying the geometry. Normals must be set before displaying in this case.
useColors
If true then the local colors are taken into account when displaying the geometry. Colors must be set before displaying in this case.
Remarks
This method must be called before any other geometry properties and methods.
See Also

Reference

ImGearVectorEntityGeometry Class
ImGearVectorEntityGeometry Members
ImGearVectGeometryType Enumeration

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback