CountSurfaces ( mesh ) Parameters: mesh - mesh handle Description: Returns the number of surfaces in a mesh. Surfaces are sections of mesh. A mesh may contain only one section, or very many. See also: GetSurface. Comments Bill Stanbrook (Posted 1 year ago) Note that surface indexes are indexed starting at one, so you can use the value returned by this function to use it as a For loop delimiter for indexing surfaces, without any modification. Also note that vertex indexes are indexed starting at zero. CountVertices ( surface ) Parameters: surface - surface handle Description: Returns the number of vertices in a surface. Comments Bill Stanbrook (Posted 1 year ago) Note that vertex indexes are indexed starting at zero, so you will need to subtract one from the value returned by this function to use it as a For loop delimiter for indexing vertices. Also note that surface indexes are indexed starting at one. CountTriangles ( surface ) Parameters: surface - surface handle Description: Returns the number of triangles in a surface. GetSurface ( mesh, index ) Parameters: mesh - mesh handle index - index of surface Description: Returns the handle of the surface attached to the specified mesh and with the specified index number. Index should be in the range 1...CountSurfaces( mesh ), inclusive. You need to 'get a surface', i.e. get its handle, in order to be able to then use that particular surface with other commands. See also: CountSurfaces, FindSurface. VertexX# ( surface,index ) Parameters: surface - surface handle index - index of vertex Description: Returns the x coordinate of a vertex. TriangleVertex ( surface,triangle_index,corner ) Parameters: surface - surface handle triangle_index - triangle index corner - corner of triangle. Should be 0, 1 or 2. Description: Returns the vertex of a triangle corner. CreateBank:TBank( size=0 ) Returns: A bank object with an initial size of size bytes Description: Create a bank CreateBank creates a Bank allocating a specified amount of memory thatcan be used for storage of binary data using the various Poke andPeek commands. PokeFloat( bank:TBank,offset,value# ) Returns: Nothing. Description: Poke a float into a bank A float requires 4 bytes of storage PokeInt( bank:TBank,offset,value ) Returns: Nothing. Description: Poke an int into a bank An int is a signed 32 bit value that requires 4 bytes of storage.