6 public static void Main(
string[] args)
11 VecDataArray4i conn =
new VecDataArray4i(1);
12 Vec4i vec4i =
new Vec4i();
19 VecDataArray3d coords =
new VecDataArray3d(4);
20 Vec3d xyz =
new Vec3d();
26 Console.WriteLine(
"coords[{0}] = [{1}, {2}, {3}]",
id, coords[
id][0], coords[
id][1], coords[
id][2]);
33 Console.WriteLine(
"coords[{0}] = [{1}, {2}, {3}]",
id, coords[
id][0], coords[
id][1], coords[
id][2]);
41 Console.WriteLine(
"coords[{0}] = [{1}, {2}, {3}]",
id, coords[
id][0], coords[
id][1], coords[
id][2]);
48 Console.WriteLine(
"coords[{0}] = [{1}, {2}, {3}]",
id, coords[
id][0], coords[
id][1], coords[
id][2]);
50 TetrahedralMesh tetMesh =
new TetrahedralMesh();
51 tetMesh.initialize(coords, conn);
53 Console.WriteLine(
"vol = {0}", tetMesh.getVolume());
54 Console.WriteLine(
"numberOfTets = {0}", tetMesh.getNumTetrahedra());
55 Vec4i conn_tet = tetMesh.getCells()[0];
56 Console.WriteLine(
"conn[0] = [{0}, {1}, {2}, {3}]", conn_tet[0], conn_tet[1], conn_tet[2], conn_tet[3]);
59 VecDataArray4i conn2 = tetMesh.getTetrahedraIndices();
60 conn2[0] =
new Vec4i(1, 2, 3, 0);
61 Vec4i new_conn_tet = tetMesh.getCells()[0];
62 Console.WriteLine(
"conn[0] = [{0}, {1}, {2}, {3}]", new_conn_tet[0], new_conn_tet[1], new_conn_tet[2], new_conn_tet[3]);
65 PointSet asianDragonMesh = MeshIO.read(
"/home/jianfeng/Documents/imstk/build_csharp_shared/install/data/asianDragon/asianDragon.veg");
67 Console.WriteLine(
"asianDragon.getVolume() = {0}", asianDragonMesh.getVolume());
68 Console.WriteLine(
"asianDragon.getNumVertices() = {0}", asianDragonMesh.getNumVertices());
lazy initialized singleton