Visit Gigasoft's Web Site
 ProEssentials v11 Help

PEP_structPOLYDATA

Scope

3D Scientific Graph Object.

Type

structure

Default

NA

Custom

NA

OCX / VCL

NA

 

Purpose

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

This property is used to add polygon data to a 3D object when PolyMode is set to PEPM_POLYGONDATA.  To add polygons to any PolyMode chart, use PEP_structGRAPHANNOTPOLYDATA

 

The PEP_structPOLYDATA property uses th PolygonData structure 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 example 406, 415.

 

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