
! script name: parasolids.d/pkdrawvertices
! solids: draw the vertices in a solid body

!A
!A NAME:
!A
!A 	Draw Vertices
!A
!A DESCRIPTION:
!A
!A 	This script draws the vertices in a solid body.
!A
!B INSTRUCTIONS:
!B
!B 	PICK BODY : Pick the body.
!B
!# see also - htdocs/help.d/parasolids.htm


stat=ChangeLabelStr("ScriptNameStatus","Function: draw vertices ")

DIM Destination$[256]
DIM Answer$[256]


Stat= GLPlotOn
Pick_loop:!

E1=WPKPickEntity("PICK BODY")
IF (ExitScript(Destination$)) THEN Leave
IF NOT WPKIsEntity(E1) THEN Pick_loop

Pen_color= CurrentColor
Stat= WPKDrawVertices(E1,Pen_color)

GOTO Pick_loop

Leave:!
LowerColorBox
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
