Input/Output

class IO

Public Static Functions

static void write(const std::string &file_name, const std::vector<Shape> &shapes, const std::string &file_format = "step")

Write shapes into a file.

Parameters:
  • file_name – Name of the file

  • shapes – List of shapes

  • file_format – File format [‘step’, ‘iges’]

static std::vector<Shape> read(const std::string &file_name)

Read shapes from a file.

Parameters:

file_name – Name of the file

Returns:

class STEPFile

Public Functions

explicit STEPFile(const std::string &file_name)

New STEP file.

Parameters:

file_name – Name of the file to read

Shape read()

Read the file.

Returns:

The shape that is contained on the STEP file

void write(const std::vector<Shape> &shapes)

Write shapes into a file.

Parameters:

shapes – Shapes to write

class IGESFile

Public Functions

explicit IGESFile(const std::string &file_name)

New IGES file.

Parameters:

file_name – Name of the file to read

Shape read()

Read the file.

Returns:

The shape that is contained on the IGES file

void write(const std::vector<Shape> &shapes)

Write shapes into a file.

Parameters:

shapes – Shapes to write