readSTL

pyvsim.Utils.readSTL(filename)[source]

” Reads an STL file and converts it into a pyvsim Part. Note that the coordinate system of the STL file is used for the pyvsim Part.

This function uses the facilities of VTK for STL reading. Sometimes this causes a warning window to pop-up, but most of times the files are read successfully.

Parameters :

filename : string

The filename (including path) of the stl file.

Returns :

part : pyvsim.Primitives.Part

A part with the STL data. With the following default parameters:

  • name : the Part name is the filename
  • surfaceProperty : opaque

This Page