mesh.Mesh.remesh_to_quad#
- Mesh.remesh_to_quad(n_points=-1, crease_angle=30.0, smooth_iterations=2)#
Remesh a triangle surface Mesh into a quad surface Mesh.
Parameters#
- n_pointsint, optional
The approximate target number of vertices in the output mesh. If negative (default), it is set to the number of vertices in the input Mesh.
- crease_anglefloat, optional
Crease angle in degrees used to preserve sharp features. Lower values preserve more sharp edges.
- smooth_iterint, optional
Number of smoothing iterations applied to the output mesh.
Important
The resulting quad mesh may contain holes. For open surface meshes (i.e., meshes with borders), the boundary of the resulting quad mesh may not be fully aligned with the original boundary. The remeshing algorithm is not deterministic, so re-running it with the same parameters may produce slightly different results. It is strongly recommended to visually inspect the result.
Returns#
- Mesh
Returns a quad surface Mesh (quad4).
Examples#
>>> cube = shapes.cuboid(div=10, eltype="tri3") >>> quad_cube = cube.remesh_to_quad(n_points=1000) >>> print(quad_cube.eltype) Quad4