porespy.io.from_stl#
- porespy.io.from_stl(stl_path, method='shell', density=100, fill_holes=False)#
Converts an STL file to a boolean array
- Parameters:
stl_path (str or path object) – The location and name of the STL file
method (str) – The voxelization method to use. Options are:
density (int) – The number of voxels along the longest axis of the bounding box. Higher values give higher resolution but use more memory. The default is 100 for all methods.
fill_holes (bool) – If True then steps are taken to ensure the mesh has no holes before voxelization. Only used when
method='shell'. The default is False.
- Returns:
im – A boolean array with True values indicating the solid phase.
- Return type:
ndarray