]> OCCT Git - occt.git/commit
0027721: Add possibility to read STEP file with invalid shape_representation entity.
authorika <ika@opencascade.com>
Thu, 28 Jul 2016 13:13:25 +0000 (16:13 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 4 Aug 2016 08:22:40 +0000 (11:22 +0300)
commitc6f530b8d9cb720692274922f13cff3fcf779777
tree6e654cee27c4a499d8a427707ac353b47c32d8cc
parent30c1ef75af0b699bff9c14316f80d7b0482b5547
0027721: Add possibility to read STEP file with invalid shape_representation entity.

Add special parameter, which allow reading of all top level (not shared by any other entities) solids (manifold_solid_brep) and shells (shell_based_surface_model).

The examples how to use a new parameter:

DRAW:
switch on a parameter:
    param read.step.all.shapes On
update model to apply new parameter value:
    newmodel
read as usual:
    stepread test.stp res * // each top level solid or shell will be read as res_i shape.
    or
    ReadStep Doc test.stp

CXX Code:
switch on a parameter:
    Interface_Static::SetIVal("read.step.all.shapes", 1);
read as usual
src/STEPControl/STEPControl_Controller.cxx
src/STEPControl/STEPControl_Reader.cxx
tests/bugs/step/bug27721 [new file with mode: 0644]