SilverScreen Solid Modeler



Previous topic Next topic  


Previous topic Next topic JavaScript is required for the print function  




BOOLEAN prim_triangle_get(SS_TRIANGLE_HANDLE th, USINT index, SS_TRIANGLE_INFO *ti);


SS_TRIANGLE_HANDLE th;    // A triangulation handle returned by prim_triangles_collect

USINT              index; // An unsigned integer value

SS_TRIANGLE_INFO   *ti;   // A pointer to an SS_TRIANGLE_INFO structure




#include "silver.h"


The prim_triangle_get function retrieves the information associated with a triangulation by an index number. It is used in conjunction with prim_triangles_collect.




th is a triangulation handle that must have been returned by a call to prim_triangles_collect


index is a positive integer representing a triangulation index that should be between 1 and the value retrieved by prim_triangles_count.


ti is a pointer to an SS_TRIANGLE_INFO structure that will receive information about the triangle  corresponding to index.



Return Value

prim_triangle_get returns TRUE if the handle and index are valid, and FALSE otherwise



See Also

prim_triangles_collect, prim_triangles_count




See prim_triangles_collect for an example