skrobot.sdf.signed_distance_function.trimesh2sdf¶
- skrobot.sdf.signed_distance_function.trimesh2sdf(mesh, dim_grid=100, padding_grid=5)[source]¶
Convert trimesh to signed distance function.
- Parameters:
mesh (trimesh.base.Trimesh) – mesh object.
dim_grid (int) – dimension of the GridSDF. This value is used for a not primitive mesh.
padding_grid (int) – number of padding.
- Returns:
sdf – converted signed distance function.
- Return type: