This application discloses a method, apparatus, device, and medium for generating hexahedral dominant meshes for simulating mechanical structural components of aircraft. It relates to the field of
mesh generation technology, including: subdividing a
quadrilateral dominant mesh to obtain a triangular mesh; adding the vertices of the surface triangular pieces of the tetrahedral mesh generated from the triangular mesh to a preset
queue, and generating target points by traversing the frame of the first vertex in the
queue in each direction; querying other position points within the
target range, and determining hexahedral edge pairs based on the distance relationship between the target point and other position points; generating a lattice-like tetrahedral mesh based on the triangular mesh and the position field, and determining hexahedral element edges based on the hexahedral edge pairs and the lattice-like tetrahedral mesh; determining right-angled triangular faces based on the selected hexahedral element edges, determining tetrahedral combinations through the right-angled triangular faces, and merging the tetrahedral combinations to generate a hexahedral dominant mesh for simulating mechanical structural components of aircraft. This method rapidly generates high-percentage hexahedral meshes.