Chi-Tech
|
Functions | |
Handle | chi_lua::chiSurfaceMeshCreate () |
void | chi_lua::chiSurfaceMeshExportToObj (int SurfaceHandle, char *FileName) |
void | chi_lua::chiSurfaceMeshExportPolyFile (int SurfaceHandle, char *FileName) |
void | chi_lua::chiSurfaceMeshExtractOpenEdgesToObj (int SurfaceHandle, char FileName) |
success | chi_lua::chiSurfaceMeshImportFromOBJFile (int SurfaceHandle, string FileName, bool polyflag, table3 transform) |
success | chi_lua::chiSurfaceMeshImportFromTriangleFiles (int SurfaceHandle, char *FileName, bool polyflag) |
void | chi_lua::chiSurfaceMeshCheckCycles (int SurfaceHandle, int NumAngles) |
void | chi_lua::chiComputeLoadBalancing (int SurfaceHandle, table Xcuts, table Ycuts) |
void chi_lua::chiComputeLoadBalancing | ( | int | SurfaceHandle, |
table | Xcuts, | ||
table | Ycuts | ||
) |
Computes load balancing parameters for given predictive x and y cuts without actually performing cuts.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
Xcuts | table Array of x-values associated with the xcuts. |
Ycuts | table Array of y-values associated with the ycuts. |
Definition at line 1076 of file lua_functions.c.
void chi_lua::chiSurfaceMeshCheckCycles | ( | int | SurfaceHandle, |
int | NumAngles | ||
) |
Builds sweep ordering for a number of angles and checks whether any cyclic dependencies are encountered.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
NumAngles | int Number of azimuthal angles to use for checking cycles. |
Definition at line 1066 of file lua_functions.c.
Handle chi_lua::chiSurfaceMeshCreate | ( | ) |
Creates a new empty surface mesh.
Example usage:
Definition at line 974 of file lua_functions.c.
void chi_lua::chiSurfaceMeshExportPolyFile | ( | int | SurfaceHandle, |
char * | FileName | ||
) |
Exports mesh as a .poly format.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
FileName | char* Path and basename to the file to be exported. |
Definition at line 991 of file lua_functions.c.
void chi_lua::chiSurfaceMeshExportToObj | ( | int | SurfaceHandle, |
char * | FileName | ||
) |
Exports mesh as a .obj format.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
FileName | char* Path to the file to be exported. |
Definition at line 983 of file lua_functions.c.
void chi_lua::chiSurfaceMeshExtractOpenEdgesToObj | ( | int | SurfaceHandle, |
char | FileName | ||
) |
Exports all open edges of a surface mesh to file. This is used mostly for graphical error checking.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
FileName | char Filename to which the edges are to be exported. |
Definition at line 1001 of file lua_functions.c.
success chi_lua::chiSurfaceMeshImportFromOBJFile | ( | int | SurfaceHandle, |
string | FileName, | ||
bool | polyflag, | ||
table3 | transform | ||
) |
Loads mesh data from a wavefront object.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
FileName | string Path to the file to be imported. |
polyflag | bool (Optional)Flag indicating whether triangles are to be read as polygons. [Default: true (read as polygons)]. |
transform | table3 (Optional) Translation vector to move all the vertices. [Default: none]. |
If the intent of a surface mesh is to serve as a 3D logical volume then the polyFlag
parameter should be set to false.
Example usage:
Definition at line 1043 of file lua_functions.c.
success chi_lua::chiSurfaceMeshImportFromTriangleFiles | ( | int | SurfaceHandle, |
char * | FileName, | ||
bool | polyflag | ||
) |
Loads mesh data from a wavefront object.
SurfaceHandle | int Handle to the surface on which the operation is to be performed. |
FileName | char* Path to the file to be imported. |
polyflag | bool (Optional)Flag indicating whether triangles are to be read as polygons. [Default: true) |
Definition at line 1055 of file lua_functions.c.