|
GetShapeEdges | ||
NumberOfEdges = GetShapeEdges(ShapeIndex, [EdgeSelect=0]) | ||
Parameters: ShapeIndex = The Index of the shape you wish to query [EdgeSelect=0] = A toggle to select the total available edges, or the highest used edge |
||
Returns: NumberOfEdges = The number of edges in this shape |
||
The GetShapeEdges function can return two edge values. It can either return the total number of edges a shape has, or the highest edge index that is in use. The EdgeSelect parameter is optional and defaults to zero, in this mode the command returns the max number of edges in this shape, when it's set to one, the function returns the highest used edge. FACTS: * If no edges are defined, the function will return a highest used as -1 Mini Tutorial: This example displays the max and used number of edges and vertex.
This example would output.
|
Related Info: | CreateShape | GetShapeVerts | NewShape | ResizeShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |