Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEP_structPOLYDATA

Scope

3D Scientific Graph Object.

Type

structure

Default

NA

Custom

NA

Ocx|Vcl

NA

 

Purpose

This property is used to add polygon data to a 3D object when PolyMode is set to PEPM_POLYGONDATA.

 

The PEP_structPOLYDATA 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 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.

 

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