3 \page tui_viewing_meshes_page Viewing Meshes
6 \anchor tui_viewing_mesh_infos
7 <h2>Viewing Mesh Infos</h2>
14 box = geompy.MakeBox(0., 0., 0., 20., 20., 20.)
15 geompy.addToStudy(box, "box")
18 tetra = smesh.Mesh(box, "MeshBox")
20 algo1D = tetra.Segment()
21 algo1D.NumberOfSegments(3)
23 algo2D = tetra.Triangle()
24 algo2D.MaxElementArea(10.)
26 algo3D = tetra.Tetrahedron(smesh.NETGEN)
27 algo3D.MaxElementVolume(900.)
32 # print information about the mesh
33 print "Information about mesh:"
34 print "Number of nodes : ", tetra.NbNodes()
35 print "Number of edges : ", tetra.NbEdges()
36 print "Number of faces : ", tetra.NbFaces()
37 print " triangles : ", tetra.NbTriangles()
38 print " quadrangles : ", tetra.NbQuadrangles()
39 print " polygons : ", tetra.NbPolygons()
40 print "Number of volumes : ", tetra.NbVolumes()
41 print " tetrahedrons: ", tetra.NbTetras()
42 print " hexahedrons : ", tetra.NbHexas()
43 print " prisms : ", tetra.NbPrisms()
44 print " pyramids : ", tetra.NbPyramids()
45 print " polyhedrons : ", tetra.NbPolyhedrons()