From 65b3cb45a41097d1e6894f845894da521cd8d8be Mon Sep 17 00:00:00 2001 From: Andrea Mola Date: Wed, 12 Nov 2014 14:30:55 +0100 Subject: [PATCH] added namespace and () to the read_STEP and write_STEP name functions in the doc/changes.h file; removed some extra empty line from the function implementation in utilities.cc --- doc/news/changes.h | 2 +- source/opencascade/utilities.cc | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/news/changes.h b/doc/news/changes.h index 4ca91ec1cb..ab6e3b7cb9 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -335,7 +335,7 @@ inconvenience this causes.
  1. New: Added support for STEP files in the OpenCASCADE wrappers. STEP files can now be imported and exported respectively - with the read_STEP and write_STEP functions. + with the OpenCASCADE::read_STEP() and OpenCASCADE::write_STEP() functions.
    (Andrea Mola, 2014/11/12)
  2. diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 218342107e..7b76e7a15e 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -211,7 +211,6 @@ namespace OpenCASCADE void write_IGES(const TopoDS_Shape &shape, const std::string &filename) { - IGESControl_Controller::Init(); IGESControl_Writer ICW ("MM", 0); Standard_Boolean ok = ICW.AddShape (shape); @@ -257,7 +256,6 @@ namespace OpenCASCADE void write_STEP(const TopoDS_Shape &shape, const std::string &filename) { - STEPControl_Controller::Init(); STEPControl_Writer SCW; IFSelect_ReturnStatus status; @@ -267,8 +265,6 @@ namespace OpenCASCADE status = SCW.Write(filename.c_str()); AssertThrow(status = IFSelect_RetDone, ExcMessage("Failed to write translated shape to STEP file.")); - - } double get_shape_tolerance(const TopoDS_Shape &shape) -- 2.39.5