Visit Gigasoft's Web Site
 ProEssentials v11 Help

PEP_structTRIANGLEDATA

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.  To add polygons to any 3d chart, use PEP_structGRAPHANNOTTRIANGLEDATA.  This property is a replacement of the legacy property and structure PEP_structPOLYDATA.  Using TriangleData allows for ComputeShader = True, where-as PEP_structPOLYGONDATA does not support ComputeShader.  

 

The PEP_structTRIANGLEDATA property uses the TriangleData structure as follows

 

typedef struct

{

   float  X;

   float  Y;

   float  Z;

} Point3D;

 

typedef struct

{

   Point3D Vertices[3];

   DWORD  PolyColor;        // ARGB Value

} TriangleData; // 40 byte structure

 

Comments

Use PEvset to pass triangle data into object.  Instead of passing all the triangles, one can use PEP_structTRIANGLEDATAPTR to share the pointer to your apps data.  If using the zero-copy pointer, be sure your triangle memory lifecycle is maintained along with the chart.  For .Net, pin the memory if less than 100K bytes. 

 

Within the demo, see example 406, 415.

 

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