From: eap Date: Wed, 30 Jan 2013 11:28:41 +0000 (+0000) Subject: 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm X-Git-Tag: pluginMGCleaner~145 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=76fc32823ae0b3c637a4330f2057389737199c6b;hp=cac74c04ae491fdd8b7daae374f95dbc2aab2eba 0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm --- diff --git a/doc/salome/gui/SMESH/images/prism_needs_hyps.png b/doc/salome/gui/SMESH/images/prism_needs_hyps.png new file mode 100644 index 000000000..8c567809d Binary files /dev/null and b/doc/salome/gui/SMESH/images/prism_needs_hyps.png differ diff --git a/doc/salome/gui/SMESH/images/prism_stack.png b/doc/salome/gui/SMESH/images/prism_stack.png index 7648b8fa4..bba633477 100644 Binary files a/doc/salome/gui/SMESH/images/prism_stack.png and b/doc/salome/gui/SMESH/images/prism_stack.png differ diff --git a/doc/salome/gui/SMESH/images/prism_tui_sample.png b/doc/salome/gui/SMESH/images/prism_tui_sample.png index 63569290e..0df7e48c3 100644 Binary files a/doc/salome/gui/SMESH/images/prism_tui_sample.png and b/doc/salome/gui/SMESH/images/prism_tui_sample.png differ diff --git a/doc/salome/gui/SMESH/input/prism_3d_algo.doc b/doc/salome/gui/SMESH/input/prism_3d_algo.doc index 9471dcfd9..d68902869 100644 --- a/doc/salome/gui/SMESH/input/prism_3d_algo.doc +++ b/doc/salome/gui/SMESH/input/prism_3d_algo.doc @@ -30,35 +30,43 @@ all the eight prisms in the stacks. To use 3D extrusion algorithm you need to assign algorithms and hypotheses of lower dimension as follows. +(A sample picture below shows algorithms and hypotheses used to +mesh a cylinder with prismatic volumes). + +\image html prism_needs_hyps.png \b Global algorithms and hypotheses to be chosen at \ref create_mesh_anchor "Creation of a mesh object" are: \b Local algorithms and hypotheses to be chosen at \ref constructing_submeshes_page "Constructing sub-meshes" are: -\image html image157.gif "Prism with 3D extrusion meshing" +\image html image157.gif -As you can see, the 3D extrusion algorithm permits to build -in the same 3D mesh such elements as hexahedrons, prisms and -polyhedrons. +Prism with 3D extrusion meshing. "Vertical" division is different on +neighbor edges due to local 1D hypotheses assigned. \sa a sample TUI Script of \ref tui_prism_3d_algo "Use 3D extrusion meshing algorithm". diff --git a/doc/salome/gui/SMESH/input/tui_prism_3d_algo.doc b/doc/salome/gui/SMESH/input/tui_prism_3d_algo.doc index e75596dbf..4c38d2c7f 100644 --- a/doc/salome/gui/SMESH/input/tui_prism_3d_algo.doc +++ b/doc/salome/gui/SMESH/input/tui_prism_3d_algo.doc @@ -54,25 +54,30 @@ bigQuad = geompy.GetFaceNearPoint( prisms, geompy.MakeVertex( 15,15,0 ), "bigQ mesh = smesh.Mesh( prisms ) -# vertical division +# assign Global hypotheses + +# 1D algorithm and hypothesis for vertical division mesh.Segment().NumberOfSegments(15) # Extrusion 3D algo mesh.Prism() -# mesh smallQuad with quadrilaterals +# assign Local hypotheses + +# 1D and 2D algos and hyps to mesh smallQuad with quadrilaterals mesh.Segment(smallQuad).LocalLength( 3 ) mesh.Quadrangle(smallQuad) -# mesh bigQuad with triangles +# 1D and 2D algos and hyps to mesh bigQuad with triangles mesh.Segment(bigQuad).LocalLength( 3 ) mesh.Triangle(bigQuad) +# compute the mesh mesh.Compute() \endcode -The result mesh is shown below +The result geometry and mesh is shown below \image html prism_tui_sample.png */