Visit Gigasoft's Web Site
 ProEssentials v11 Help

PEP_structGRAPHANNOTPOLYDATA

Scope

3D Scientific Graph Object.

Type

structure

Default

NA

Custom

NA

OCX / VCL

NA

 

Purpose

There is a newer preferred property, we recommend PEP_structGRAPHANNOTTRIANGLEDATA which supports ComputeShader = True.  

This property is used to add polygon data to a 3D object for any PolyMode.  It's used similar to PEP_structPOLYDATA except annotations can be added to any chart.  GraphAnnotPolyDataPlotMethod can be used to control the polygon colors 

 

The PEP_structGRAPHANNOTPOLYDATA structure is as follows

 

typedef struct

{

   float  X;

   float  Y;

   float  Z;

} Point3D;

 

typedef struct

{

   Point3D Vertices[4];

   int  NumberOfVertices;   // 3 or 4

   DWORD  PolyColor;        // RGB Value

   DWORD dwReserved1;

   DWORD  dwReserved2;

} PolygonData; // 64 byte structure

 

Comments

AddSkirts (somewhat obsolete Direct2D only) should be set to TRUE if the polygon data forms an enclosed surface and you want to produce a surface or shaded surface image. When passing polygon data, the polygon vertices must be ordered in a counter-clockwise order as viewed from outside of the object. This is only necessary for hidden line removal and shading purposes. If you are only producing a wireframe image, the ordering of vertices is not critical.

 

Use PEvset to pass polygon data into object.

 

Within the demo, see examples 415, 406.

 

Refer to Chapter 7 and the example code on more information on using this property.