pyvista_cad.read_iges

On this page

pyvista_cad.read_iges#

read_iges(path, /, *, bsplines=True, surfaces=True, lines=False, points=False, delta=0.025, **_)[source]#

Read an IGES file using pyiges and return a pyvista dataset.

Wraps pyiges.read(path).to_vtk(...). Requires pyvista-cad[iges] (pyiges + geomdl).

Parameters:
pathstr or os.PathLike

Path to an IGES (.iges / .igs) file.

bsplinesbool, default: True

Tessellate BSpline surfaces.

surfacesbool, default: True

Include analytic surfaces.

linesbool, default: False

Include line/curve entities.

pointsbool, default: False

Include isolated point entities.

deltafloat, default: 0.025

Tessellation step for geomdl.

**_Any

Forward-compat keyword arguments are accepted and ignored.

Returns:
pyvista.DataSet

Tessellated dataset (PolyData or MultiBlock depending on the IGES content).

Parameters:
Return type:

pv.DataSet