do_create_mesh_by_points_and_lines
Create a 3d mesh element (3d mesh) from a table of points and / or a table of level lines from a contour table.
Call:
ac_request("do_create_mesh_by_points_and_lines", int iTable_Coords3DPointsTable, int iTable_Coords2DTableContour, int iTable_Coords3DPointsTable);
Here:
iTable_Coords3DPointsTable - table descriptor describing 3d points of the surface level (may be -1 if the levels are given only by lines);
iTable_Coords2DTableContour - table handle describing 2d contour points. If you specify -1 - then the contour will be points calculated automatically according to the tables of level points and lines;
iTable_Coords3DPointsTable - table descriptor describing 3d level lines (may be -1 if levels are set only by points).
Example.
Construct a common surface for a set of selected elements in the form of a 3d grid, in which the level coordinates are given by points.
int iTable_Coords3DTable;
object("create", "ts_table", iTable_Coords3DTable);
int iTable_Coords2DTableContour;
object("create", "ts_table", iTable_Coords2DTableContour);
ac_request_special("load_elements_list_from_selection", 1, "MeshType", 2);
ac_request("get_loaded_elements_list_count", 1);
int icount = ac_getnumvalue();
cout << "Items selected for analysis = " << icount << "\n";
ac_request("get_lands_combined_contour_coords", 1, iTable_Coords2DTableContour);
string str;
ts_table(iTable_Coords2DTableContour, "print_to_str", str);
cout << "Contour\n";
coutvar << str;
ac_request("get_lands_topcoords", 1, iTable_Coords3DTable, 1);
ts_table(iTable_Coords3DTable, "print_to_str", str);
cout << "\nCoords\n";
coutvar << str;
ac_request("do_create_mesh_by_points_and_lines", iTable_Coords3DTable, iTable_Coords2DTableContour,-1);
object("delete", iTable_Coords2DTableContour);
object("delete", iTable_Coords3DTable);