API 文档 > Graphics and model display > Object ProGraphics > Function ProGraphicsMultiPolylinesDraw
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:
Synopsis
#include <ProGraphic.h>
void
ProGraphicsMultiPolylinesDraw
(
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
Sample Code References
这对您有帮助吗?