Algorithms

Cleaning

Py3DViewer.algorithms.cleaning.remove_duplicated_vertices(mesh)[source]
Py3DViewer.algorithms.cleaning.remove_isolated_vertices(mesh)[source]

Dijsktra

Py3DViewer.algorithms.dijsktra.dijsktra(mesh, start)[source]

Returns the shortest distance between a vertex and all the other vertices of the mesh by using the dijsktra algorithm.

Parameters:
  • mesh – a mesh of any type
  • start (int) – the starting vertex

HeatFlow

Py3DViewer.algorithms.heat_flow.solve_heat_flow(mesh, heat_sources, time)[source]

Smoothing

Py3DViewer.algorithms.smoothing.laplacian_smoothing(mesh, lambda_=1.0, iterations=1)[source]
Py3DViewer.algorithms.smoothing.taubin_smoothing(mesh, lambda_=0.89, mu=-0.9, iterations=1)[source]

Subdivision

Py3DViewer.algorithms.subdivision.catmull_clark_subdivision(mesh)[source]
Py3DViewer.algorithms.subdivision.hex_to_tet_subdivision(hexes, subdivision_rule=3)[source]
Py3DViewer.algorithms.subdivision.mesh_subdivision(mesh, override_mesh=False, custom_scheme=None)[source]
Py3DViewer.algorithms.subdivision.quad_to_tri_subdivision(mesh)[source]