# Blocks

# Building by blocks

Introduction.

Below are some general notions about blocks:

A block is a an elementary geometric solid that has specific geometric constraints oriented for meshing. In the hexahedral case, blocks have 6 faces and each face has 4 edges.

Tetrahedral Block - is a block with constraints for tetrahedral meshing.

Hexahedral Block - is a block with constraints for hexahedral meshing.

Block Compound - is a compound composed of blocks only.

These functionalities are available from the main menu via New Entity / Blocks.

- Quadrangle face

- Hexahedral solid

Quadrangle face

Description: Builds a face using the below mentioned arguments. This operation allows to build a face bypassing the intermediate stage of building edges and wires (in the case of building by 4 points) or wires (in the case of building by 4 or 2 edges).

Result : GEOM_Object (face).

TUI Command:

- geompy.MakeQuadFaceVertices(V1, V2, V3, V4), where V1, V2, V3, V4 are four vertices from which a face is constructed. Edges are created automatically.

- geompy.MakeQuadFaceEdges(E1, E2), where E1, E2 are edges from which the face is constructed, two other edges are created automatically.

- geompy.MakeQuadFace(E1, E2, E3, E4), where E1, E2, E3, E4 are four edges from which the face is constructed.

Arguments:

- Name + 4 Points, or

- Name + 2 Edges, or

- Name + 4 Edges.

Dialog Box:

Example:

Hexahedral solid

Description: Builds a hexahedral solid. either of the below mentioned arguments. This operation allows to build a solid bypassing the intermediate stage of building a shell and 4 faces (in the case of building by 2 faces) or just a shell (in the case of building by 6 faces).

Result : GEOM_Object.

TUI Command:

- geompy.MakeHexaSolid(F1, F2, F3, F4, F5, F6), where F1 – F6 are six faces from which the hexahedron is constructed.

- geompy.MakeHexaSolidTwoFaces(F1, F2), where F1 and F2 are faces from which the hexahedron is constructed, other four faces are created automatically.

Arguments:

- Name + 2 Faces, or

- Name + 6 Faces.

Dialog Box:

Example:

Our TUI Scripts provide you with useful examples of Building by Blocks.