Chi-Tech
mesh_maindoc_page.h
Go to the documentation of this file.
1
/** \defgroup LuaMesh A Meshing
2
3
4
## Mesh Handling
5
6
Meshing in ChiTech is made available via the chi_mesh namespace. All instances
7
of entities are stored within a handler (chi_mesh::MeshHandler). A mesh handler
8
is created with a call to chiMeshHandlerCreate().
9
10
\code
11
chiMeshHandlerCreate()
12
\endcode
13
14
## Predefined 2D Mesh Setup Example
15
16
\code
17
chiMeshHandlerCreate()
18
--
19
newSurfMesh = chiSurfaceMeshCreate();
20
chiSurfaceMeshImportFromOBJFile(newSurfMesh,"CHI_RESOURCES/TestObjects/SquareMesh2x2.obj")
21
loops,loop_count = chiSurfaceMeshGetEdgeLoops(newSurfMesh)
22
--
23
--
24
line_mesh = {};
25
line_mesh_count = 0;
26
--
27
for k=1,loop_count do
28
split_loops,split_count = chiEdgeLoopSplitByAngle(loops,k-1);
29
for m=1,split_count do
30
line_mesh_count = line_mesh_count + 1;
31
line_mesh[line_mesh_count] = chiLineMeshCreateFromLoop(split_loops,m-1);
32
end
33
--
34
end
35
\endcode
36
37
*/
framework
mesh
doc
mesh_maindoc_page.h
Generated by
1.9.3