shapeΒΆ
class shape
The Lua to the internal Guerilla shape storage
Members
| getpolygoncount | ( ) | Return the number of polygons in the shape |
| getpolygonvertex | (
|
Return the index of the nth vertex in a polygon of the shape |
| getpolygonvertexcount | (
|
Return the number of vertices in a polygon of the shape |
| getpolygonvertices | (
|
Return the indices of the vertices in a polygon of the shape as a n-uple of integer numbers, as in LUAINLINE{local indices = { shape:getpolygonvertices (poly) }} |
| getvar | (
|
Return the data associated to a polygon vertex for a given variable, as a n-uple of floating point numbers. |
| getvariables | ( ) | Return the list of avaiable variables in the shape |
Documentation
Return the number of polygons in the shape
count the number of polygons in the shape
Return the index of the nth vertex in a polygon of the shape
polygon the 1-based index of the polygonvertex the 1-based index of the vertex in the polygon
index the index of the vertex in the polygon, or nil if the polygon or vertex is invalid
Return the number of vertices in a polygon of the shape
polygon the 1-based index of the polygon
count the number of vertices in a polygon of the shape
Return the indices of the vertices in a polygon of the shape as a n-uple of integer numbers, as in LUAINLINE{local indices = { shape:getpolygonvertices (poly) }}
polygon the 1-based index of the polygon
indices the indices of the vertices in the polygon, or nil if the polygon is invalid
Return the data associated to a polygon vertex for a given variable, as a n-uple of floating point numbers.
local x,y,z = shape:getvar ("P",poly,vertex)
variable the variable name, such as "P", "N", "st"...polygon the 0-based index of the polygon to get data fromvertex the 0-based index of the vertex in the polygon to get data from
data the data associated to the vertex polygon in the requested variable, or nil if no data are associated.
Return the list of avaiable variables in the shape
variables the list of available variables