Category Graphics and model display, Object ProGraphics

Function ProGraphicsMultiPolylinesDraw


Description
Draws a set of polylines on the screen.

NOTES:

  • These points are in the coordinate system of the current object. If the current object is a part, they must be in the part's coordinate system. If the current object is an assembly, they must be in the assembly's coordinate system.
  • The total number of points (the sum of the span elements) must be less than 200.

EXAMPLE:

This example draws a 3-point polyline, a 2-point polyline, and a 4-point polyline.

static double points = { {0.0, 0.0, 0.0},
{1.0, 0.0, 0.0},
{1.0, 1.0, 0.0},
{7.1, 2.3, -12.0},
{7.1, 10.9, -5.1},
{4.1, 9.2, 2.0},
{3.8, 9.2, 4.5},
{0.4, 9.2, 3.2},
{2.1, 9.2, 0.5}}
static int span = {3, 2, 4}
static int num_lines = 3
Replacement in Object TOOLKIT: wfcWDisplay::DrawPolylines
Synopsis
#include <ProGraphic.h>
voidProGraphicsMultiPolylinesDraw(
ProPoint3d* point_arr
/* (In)
The 3-D points that define the segments of the polylines
*/
int* span
/* (In)
The number of points in each polyline
*/
int num_lines
/* (In)
The number of polylines (the number of elements in span)
*/
)
Returns
None

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Displaying Graphics
  3. User Interface: Basic Graphics: Displaying Graphics

Sample Code References:

  1. pt_examples ( TestGraphics.c )