|
GetShapeVerts | ||
NumberOfVertexs = GetShapeVerts(ShapeIndex, [VertexSelect=0]) | ||
Parameters: ShapeIndex = The Index of the shape you wish to query [VertexSelect=0] = A toggle to select the total available vertex, or the highest used vertex |
||
Returns: NumberOfVertexs= The number of vertex in this shape |
||
The GetShapeVerts function can return two vertex values. It can either return the total number of vertex a shape has, or the highest vertex index that is in use. The VertexSelect parameter is optional. It defaults to 0, in this mode the command returns the Absolute number of vertex in the shape. Setting it to 1 makes the function return the highest used vertex index. FACTS: * If no edges are in use, the function will return a -1 for the highest used vertex. Mini Tutorial: This example displays the max and used number of edges and vertex.
This example would output.
|
Related Info: | CreateConvexShape | CreateShape | GetShapeEdges | LoadShape | NewConvexShape | NewShape | SaveShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |