![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
#define SurfacesPoints_normalOffset #define SurfacesPoints_translationOffset #define SurfacesPoints_userOffset void isosurfacesPointsAllocate (SurfacesPoints *points, int nsurf, int npolys, int npoints); void isosurfacesPointsCheck (SurfacesPoints *points); void isosurfacesPointsFree (SurfacesPoints *points); void isosurfacesPointsInit (SurfacesPoints *points, int bufferSize); void isosurfacesPointsRemove (SurfacesPoints *points, int pos); void isosurfacesPointsTranslate (SurfacesPoints *points, float xyz[3]);
#define SurfacesPoints_normalOffset 3
The offset to read the normal values in poly_points.
#define SurfacesPoints_translationOffset 6
The offset to read the translation values in poly_points.
#define SurfacesPoints_userOffset 9
The offset to read the user values in poly_points.
void isosurfacesPointsAllocate (SurfacesPoints *points, int nsurf, int npolys, int npoints);
Allocate the arrays to store a set of points.
|
a pointer on a set of points (not allocated) ; |
|
the number of stored surfaces ; |
|
the number of stored polygons ; |
|
the corresponding number of points ; |
void isosurfacesPointsCheck (SurfacesPoints *points);
A debug routines to check that all pointers and size are relevant. It should not be used outside a debug area because it can be slow.
|
a set of points. |
void isosurfacesPointsFree (SurfacesPoints *points);
Free all allocated arrays of the given set of points. The point structure itself is not freed.
|
a set of points. |
void isosurfacesPointsInit (SurfacesPoints *points, int bufferSize);
Initialise a SurfacesPoints structure. It must be done before any use.
|
a pointer on a set of points (not initialised) ; |
|
the number of additional data to coordinates and normals. |
void isosurfacesPointsRemove (SurfacesPoints *points, int pos);
Remove the points belonging to surface number pos
.
|
a set of points ; |
|
an integer between 0 and points->nsurf. |