add check for null.
#include <RWStepRepr_RWCharacterizedRepresentation.hxx>
#include <StepVisual_CharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <RWStepVisual_RWCharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
+#include <StepVisual_AnnotationFillArea.hxx>
+#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
+#include <RWStepVisual_RWAnnotationFillArea.hxx>
+#include <RWStepVisual_RWAnnotationFillAreaOccurrence.hxx>
static Standard_Integer catsh,catdr,catstr,catdsc,cataux;
tool.Share(anent,iter);
}
break;
+ case 5:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
+ RWStepVisual_RWAnnotationFillArea tool;
+ tool.Share(anent, iter);
+ }
+ break;
+ case 6:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
+ RWStepVisual_RWAnnotationFillAreaOccurrence tool;
+ tool.Share(anent, iter);
+ }
+ break;
case 7:
{
DeclareAndCast(StepVisual_AnnotationOccurrence,anent,ent);
case 4 :
ent = new StepVisual_AnnotationCurveOccurrence;
break;
+ case 5:
+ ent = new StepVisual_AnnotationFillArea;
+ break;
+ case 6:
+ ent = new StepVisual_AnnotationFillAreaOccurrence;
+ break;
case 7 :
ent = new StepVisual_AnnotationOccurrence;
break;
#include <RWStepRepr_RWConstructiveGeometryRepresentationRelationship.hxx>
#include <StepVisual_CharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <RWStepVisual_RWCharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
+#include <StepVisual_AnnotationFillArea.hxx>
+#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
+#include <RWStepVisual_RWAnnotationFillArea.hxx>
+#include <RWStepVisual_RWAnnotationFillAreaOccurrence.hxx>
// -- General Declarations (Recognize, StepType) ---
tool.ReadStep (data,num,ach,anent);
}
break;
+ case 5:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
+ RWStepVisual_RWAnnotationFillArea tool;
+ tool.ReadStep(data, num, ach, anent);
+ }
+ break;
+ case 6:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
+ RWStepVisual_RWAnnotationFillAreaOccurrence tool;
+ tool.ReadStep(data, num, ach, anent);
+ }
+ break;
case 7 :
{
DeclareAndCast(StepVisual_AnnotationOccurrence, anent, ent);
tool.WriteStep (SW,anent);
}
break;
+ case 5:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
+ RWStepVisual_RWAnnotationFillArea tool;
+ tool.WriteStep(SW, anent);
+ }
+ break;
+ case 6:
+ {
+ DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
+ RWStepVisual_RWAnnotationFillAreaOccurrence tool;
+ tool.WriteStep(SW, anent);
+ }
+ break;
case 7 :
{
DeclareAndCast(StepVisual_AnnotationOccurrence, anent, ent);
RWStepVisual_RWAnnotationCurveOccurrence.cxx
RWStepVisual_RWAnnotationCurveOccurrence.hxx
+RWStepVisual_RWAnnotationFillArea.cxx
+RWStepVisual_RWAnnotationFillArea.hxx
+RWStepVisual_RWAnnotationFillAreaOccurrence.cxx
+RWStepVisual_RWAnnotationFillAreaOccurrence.hxx
RWStepVisual_RWAnnotationOccurrence.cxx
RWStepVisual_RWAnnotationOccurrence.hxx
RWStepVisual_RWAnnotationPlane.cxx
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+
+#include <Interface_Check.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <RWStepVisual_RWAnnotationFillArea.hxx>
+#include <StepData_StepReaderData.hxx>
+#include <StepData_StepWriter.hxx>
+#include <StepVisual_AnnotationFillArea.hxx>
+#include <StepShape_GeometricSetSelect.hxx>
+#include <StepShape_HArray1OfGeometricSetSelect.hxx>
+
+//=======================================================================
+//function : RWStepVisual_RWAnnotationFillArea
+//purpose :
+//=======================================================================
+RWStepVisual_RWAnnotationFillArea::RWStepVisual_RWAnnotationFillArea () {}
+
+//=======================================================================
+//function : ReadStep
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillArea::ReadStep
+(const Handle(StepData_StepReaderData)& data,
+const Standard_Integer num,
+Handle(Interface_Check)& ach,
+const Handle(StepVisual_AnnotationFillArea)& ent) const
+{
+ // Number of Parameter Control
+ if (!data->CheckNbParams(num, 2, ach, "annotation_fill_area"))
+ return;
+
+ // Inherited field : name
+
+ Handle(TCollection_HAsciiString) aName;
+ data->ReadString(num, 1, "name", ach, aName);
+
+ // Own field : boundaries
+ Handle(StepShape_HArray1OfGeometricSetSelect) aElements;
+ StepShape_GeometricSetSelect aElementsItem;
+ Standard_Integer nsub;
+ if (data->ReadSubList(num, 2, "boundaries", ach, nsub)) {
+ Standard_Integer nb = data->NbParams(nsub);
+ aElements = new StepShape_HArray1OfGeometricSetSelect(1, nb);
+ for (Standard_Integer i = 1; i <= nb; i++) {
+ if (data->ReadEntity(nsub, i, "boundaries", ach, aElementsItem))
+ aElements->SetValue(i, aElementsItem);
+ }
+ }
+
+ //Initialization of the read entity
+ ent->Init(aName, aElements);
+}
+
+//=======================================================================
+//function : WriteStep
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillArea::WriteStep
+(StepData_StepWriter& SW,
+const Handle(StepVisual_AnnotationFillArea)& ent) const
+{
+ // Inherited field : name
+ SW.Send(ent->Name());
+
+ // Own field : elements
+ SW.OpenSub();
+ for (Standard_Integer i = 1; i <= ent->NbElements(); i++) {
+ SW.Send(ent->ElementsValue(i).Value());
+ }
+ SW.CloseSub();
+}
+
+//=======================================================================
+//function : Share
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillArea::Share(const Handle(StepVisual_AnnotationFillArea)& ent, Interface_EntityIterator& iter) const
+{
+ Standard_Integer nbBound = ent->NbElements();
+ for (Standard_Integer i = 1; i <= nbBound; i++) {
+ iter.GetOneItem(ent->ElementsValue(i).Value());
+ }
+}
+
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _RWStepVisual_RWAnnotationFillArea_HeaderFile
+#define _RWStepVisual_RWAnnotationFillArea_HeaderFile
+
+#include <Standard.hxx>
+#include <Standard_DefineAlloc.hxx>
+#include <Standard_Handle.hxx>
+
+#include <Standard_Integer.hxx>
+class StepData_StepReaderData;
+class Interface_Check;
+class StepVisual_AnnotationFillArea;
+class StepData_StepWriter;
+class Interface_EntityIterator;
+
+
+//! Read & Write Module for AnnotationFillArea
+class RWStepVisual_RWAnnotationFillArea
+{
+public:
+
+ DEFINE_STANDARD_ALLOC
+
+
+ Standard_EXPORT RWStepVisual_RWAnnotationFillArea();
+
+ Standard_EXPORT void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_AnnotationFillArea)& ent) const;
+
+ Standard_EXPORT void WriteStep (StepData_StepWriter& SW, const Handle(StepVisual_AnnotationFillArea)& ent) const;
+
+ Standard_EXPORT void Share (const Handle(StepVisual_AnnotationFillArea)& ent, Interface_EntityIterator& iter) const;
+
+};
+
+#endif // _RWStepVisual_RWAnnotationFillArea_HeaderFile
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+
+#include <Interface_Check.hxx>
+#include <Interface_EntityIterator.hxx>
+#include <RWStepVisual_RWAnnotationFillAreaOccurrence.hxx>
+#include <StepData_StepReaderData.hxx>
+#include <StepData_StepWriter.hxx>
+#include <StepGeom_GeometricRepresentationItem.hxx>
+#include <StepVisual_HArray1OfPresentationStyleAssignment.hxx>
+#include <StepVisual_PresentationStyleAssignment.hxx>
+#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
+
+//=======================================================================
+//function : RWStepVisual_RWAnnotationFillAreaOccurrence
+//purpose :
+//=======================================================================
+RWStepVisual_RWAnnotationFillAreaOccurrence::RWStepVisual_RWAnnotationFillAreaOccurrence () {}
+
+//=======================================================================
+//function : ReadStep
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillAreaOccurrence::ReadStep
+(const Handle(StepData_StepReaderData)& data,
+const Standard_Integer num,
+Handle(Interface_Check)& ach,
+const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent) const
+{
+ // Number of Parameter Control
+ if (!data->CheckNbParams(num, 4, ach, "annotation_fill_area_occurrence")) return;
+
+ // Inherited field : name
+ Handle(TCollection_HAsciiString) aName;
+ data->ReadString(num, 1, "name", ach, aName);
+
+ // Inherited field : styles
+ Handle(StepVisual_HArray1OfPresentationStyleAssignment) aStyles;
+ Handle(StepVisual_PresentationStyleAssignment) anent;
+ Standard_Integer nsub;
+ if (data->ReadSubList(num, 2, "styles", ach, nsub)) {
+ Standard_Integer nb = data->NbParams(nsub);
+ aStyles = new StepVisual_HArray1OfPresentationStyleAssignment(1, nb);
+ for (Standard_Integer i = 1; i <= nb; i++) {
+ if (data->ReadEntity(nsub, i, "presentation_style_assignment", ach,
+ STANDARD_TYPE(StepVisual_PresentationStyleAssignment), anent))
+ aStyles->SetValue(i, anent);
+ }
+ }
+
+ // Inherited field : item
+ Handle(MMgt_TShared) aItem;
+ data->ReadEntity(num, 3, "item", ach, STANDARD_TYPE(MMgt_TShared), aItem);
+
+ // Own field : fill_style_target
+ Handle(StepGeom_GeometricRepresentationItem) aFillStyleTarget;
+ data->ReadEntity(num, 4, "item", ach, STANDARD_TYPE(StepGeom_GeometricRepresentationItem), aFillStyleTarget);
+
+ // Initialisation of the read entity
+ ent->Init(aName, aStyles, aItem, aFillStyleTarget);
+}
+
+//=======================================================================
+//function : WriteStep
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillAreaOccurrence::WriteStep
+(StepData_StepWriter& SW,
+const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent) const
+{
+ // Inherited field : name
+ SW.Send(ent->Name());
+
+ // Inherited field : styles
+ SW.OpenSub();
+ for (Standard_Integer i = 1; i <= ent->NbStyles(); i++) {
+ SW.Send(ent->StylesValue(i));
+ }
+ SW.CloseSub();
+
+ // Inherited field : item
+ SW.Send(ent->Item());
+
+ // Own field: fill_area_target
+ SW.Send(ent->FillStyleTarget());
+}
+
+//=======================================================================
+//function : Share
+//purpose :
+//=======================================================================
+void RWStepVisual_RWAnnotationFillAreaOccurrence::Share(const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent, Interface_EntityIterator& iter) const
+{
+ Standard_Integer nbElem1 = ent->NbStyles();
+ for (Standard_Integer i = 1; i <= nbElem1; i++) {
+ iter.GetOneItem(ent->StylesValue(i));
+ }
+ iter.GetOneItem(ent->Item());
+ iter.GetOneItem(ent->FillStyleTarget());
+}
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _RWStepVisual_RWAnnotationFillAreaOccurrence_HeaderFile
+#define _RWStepVisual_RWAnnotationFillAreaOccurrence_HeaderFile
+
+#include <Standard.hxx>
+#include <Standard_DefineAlloc.hxx>
+#include <Standard_Handle.hxx>
+
+#include <Standard_Integer.hxx>
+class StepData_StepReaderData;
+class Interface_Check;
+class StepVisual_AnnotationFillAreaOccurrence;
+class StepData_StepWriter;
+class Interface_EntityIterator;
+
+//! Read & Write Module for AnnotationFillAreaOccurrence
+class RWStepVisual_RWAnnotationFillAreaOccurrence
+{
+public:
+
+ DEFINE_STANDARD_ALLOC
+
+ Standard_EXPORT RWStepVisual_RWAnnotationFillAreaOccurrence();
+
+ Standard_EXPORT void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent) const;
+
+ Standard_EXPORT void WriteStep (StepData_StepWriter& SW, const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent) const;
+
+ Standard_EXPORT void Share (const Handle(StepVisual_AnnotationFillAreaOccurrence)& ent, Interface_EntityIterator& iter) const;
+};
+#endif // _RWStepVisual_RWAnnotationFillAreaOccurrence_HeaderFile
#include <StepRepr_ConstructiveGeometryRepresentation.hxx>
#include <StepRepr_ConstructiveGeometryRepresentationRelationship.hxx>
#include <StepVisual_CharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
+#include <StepVisual_AnnotationFillArea.hxx>
+#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
static int init = 0;
static Interface_DataMapOfTransientInteger types(800);
types.Bind (STANDARD_TYPE(StepShape_AdvancedBrepShapeRepresentation), 2);
types.Bind (STANDARD_TYPE(StepShape_AdvancedFace), 3);
types.Bind (STANDARD_TYPE(StepVisual_AnnotationCurveOccurrence), 4);
-// types.Bind (STANDARD_TYPE(StepVisual_AnnotationFillArea), 5);
-// types.Bind (STANDARD_TYPE(StepVisual_AnnotationFillAreaOccurrence), 6);
+ types.Bind (STANDARD_TYPE(StepVisual_AnnotationFillArea), 5);
+ types.Bind (STANDARD_TYPE(StepVisual_AnnotationFillAreaOccurrence), 6);
types.Bind (STANDARD_TYPE(StepVisual_AnnotationOccurrence), 7);
// types.Bind (STANDARD_TYPE(StepVisual_AnnotationSubfigureOccurrence), 8);
// types.Bind (STANDARD_TYPE(StepVisual_AnnotationSymbol), 9);
StepToTopoDS_Tool& aTool,
StepToTopoDS_NMTool& NMTool)
{
+ if (aVertex.IsNull()) {
+ myError = StepToTopoDS_TranslateVertexOther;
+ done = Standard_False;
+ return;
+ }
if (!aTool.IsBound(aVertex)) {
// [BEGIN] Proceed with non-manifold topology (ssv; 14.11.2010)
StepVisual_AnnotationCurveOccurrence.cxx
StepVisual_AnnotationCurveOccurrence.hxx
+StepVisual_AnnotationFillArea.cxx
+StepVisual_AnnotationFillArea.hxx
+StepVisual_AnnotationFillAreaOccurrence.cxx
+StepVisual_AnnotationFillAreaOccurrence.hxx
StepVisual_AnnotationOccurrence.cxx
StepVisual_AnnotationOccurrence.hxx
StepVisual_AnnotationPlane.cxx
#include <Standard_Type.hxx>
#include <StepVisual_AnnotationCurveOccurrence.hxx>
-IMPLEMENT_STANDARD_RTTIEXT(StepVisual_AnnotationCurveOccurrence,StepVisual_StyledItem)
+IMPLEMENT_STANDARD_RTTIEXT(StepVisual_AnnotationCurveOccurrence,StepVisual_AnnotationOccurrence)
StepVisual_AnnotationCurveOccurrence::StepVisual_AnnotationCurveOccurrence () {}
#include <Standard.hxx>
#include <Standard_Type.hxx>
-#include <StepVisual_StyledItem.hxx>
+#include <StepVisual_AnnotationOccurrence.hxx>
class StepVisual_AnnotationCurveOccurrence;
-DEFINE_STANDARD_HANDLE(StepVisual_AnnotationCurveOccurrence, StepVisual_StyledItem)
+DEFINE_STANDARD_HANDLE(StepVisual_AnnotationCurveOccurrence, StepVisual_AnnotationOccurrence)
-class StepVisual_AnnotationCurveOccurrence : public StepVisual_StyledItem
+class StepVisual_AnnotationCurveOccurrence : public StepVisual_AnnotationOccurrence
{
public:
//! Returns a AnnotationCurveOccurrence
Standard_EXPORT StepVisual_AnnotationCurveOccurrence();
- DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationCurveOccurrence,StepVisual_StyledItem)
+ DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationCurveOccurrence,StepVisual_AnnotationOccurrence)
};
#endif // _StepVisual_AnnotationCurveOccurrence_HeaderFile
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+
+#include <Standard_Type.hxx>
+#include <StepVisual_AnnotationFillArea.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(StepVisual_AnnotationFillArea, StepShape_GeometricCurveSet)
+
+//=======================================================================
+//function : StepVisual_AnnotationFillArea
+//purpose :
+//=======================================================================
+StepVisual_AnnotationFillArea::StepVisual_AnnotationFillArea () {}
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _StepVisual_AnnotationFillArea_HeaderFile
+#define _StepVisual_AnnotationFillArea_HeaderFile
+
+#include <Standard.hxx>
+#include <Standard_Type.hxx>
+
+#include <StepRepr_HArray1OfRepresentationItem.hxx>
+#include <StepShape_GeometricCurveSet.hxx>
+#include <Standard_Integer.hxx>
+class TCollection_HAsciiString;
+
+class StepVisual_AnnotationFillArea;
+DEFINE_STANDARD_HANDLE(StepVisual_AnnotationFillArea, StepShape_GeometricCurveSet)
+
+
+class StepVisual_AnnotationFillArea : public StepShape_GeometricCurveSet
+{
+
+public:
+ //! Returns a AnnotationFillArea
+ Standard_EXPORT StepVisual_AnnotationFillArea();
+
+ DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationFillArea, StepShape_GeometricCurveSet)
+};
+#endif // _StepVisual_AnnotationFillArea_HeaderFile
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#include <Standard_Type.hxx>
+#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(StepVisual_AnnotationFillAreaOccurrence, StepVisual_AnnotationOccurrence)
+
+//=======================================================================
+//function : StepVisual_AnnotationFillAreaOccurrence
+//purpose :
+//=======================================================================
+StepVisual_AnnotationFillAreaOccurrence::StepVisual_AnnotationFillAreaOccurrence () {}
+
+//=======================================================================
+//function : Init
+//purpose :
+//=======================================================================
+void StepVisual_AnnotationFillAreaOccurrence::Init(const Handle(TCollection_HAsciiString)& theName,
+ const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& theStyles,
+ const Handle(MMgt_TShared)& theItem,
+ const Handle(StepGeom_GeometricRepresentationItem)& theFillStyleTarget)
+{
+ StepVisual_AnnotationOccurrence::Init(theName, theStyles, theItem);
+ myFillStyleTarget = theFillStyleTarget;
+}
--- /dev/null
+// Created on: 2016-12-28
+// Created by: Irina KRYLOVA
+// Copyright (c) 2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _StepVisual_AnnotationFillAreaOccurrence_HeaderFile
+#define _StepVisual_AnnotationFillAreaOccurrence_HeaderFile
+
+#include <Standard.hxx>
+#include <Standard_Type.hxx>
+
+#include <StepVisual_AnnotationOccurrence.hxx>
+
+class StepVisual_AnnotationFillAreaOccurrence;
+DEFINE_STANDARD_HANDLE(StepVisual_AnnotationFillAreaOccurrence, StepVisual_AnnotationOccurrence)
+
+class StepVisual_AnnotationFillAreaOccurrence : public StepVisual_AnnotationOccurrence
+{
+public:
+
+ //! Returns a AnnotationFillAreaOccurrence
+ Standard_EXPORT StepVisual_AnnotationFillAreaOccurrence();
+
+ //! Initialize all fields (own and inherited)
+ Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
+ const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& theStyles,
+ const Handle(MMgt_TShared)& theItem,
+ const Handle(StepGeom_GeometricRepresentationItem)& theFillStyleTarget);
+
+ //! Returns field fill_style_target
+ Standard_EXPORT Handle(StepGeom_GeometricRepresentationItem) FillStyleTarget() const
+ {
+ return myFillStyleTarget;
+ }
+
+ //! Set field fill_style_target
+ Standard_EXPORT void SetFillStyleTarget (const Handle(StepGeom_GeometricRepresentationItem)& theTarget)
+ {
+ myFillStyleTarget = theTarget;
+ }
+
+ DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationFillAreaOccurrence, StepVisual_AnnotationOccurrence)
+
+private:
+ Handle(StepGeom_GeometricRepresentationItem) myFillStyleTarget;
+};
+#endif // _StepVisual_AnnotationFillAreaOccurrence_HeaderFile
stepread [locate_data_file bug26451_Test_STEP.stp] a *
tpcompound result
-checkprops result -s 550061
+checkprops result -s 551394
checkshape result
set nbshapes_expected "
Number of shapes in shape
- VERTEX : 7973
- EDGE : 8250
- WIRE : 1950
- FACE : 1716
- SHELL : 1716
+ VERTEX : 8057
+ EDGE : 8372
+ WIRE : 1988
+ FACE : 1754
+ SHELL : 1754
SOLID : 0
COMPSOLID : 0
COMPOUND : 1
- SHAPE : 21606
+ SHAPE : 21926
"
checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
checkview -display result -3d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "========"
+puts "OCC28256"
+puts "========"
+puts ""
+##########################################################################
+# Opening specific STEP file leads to application crash
+##########################################################################
+
+stepread [locate_data_file bug28256_test.stp] a *
+tpcompound result
+
+checkprops result -s 1.8e+101
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 56881
+ EDGE : 85310
+ WIRE : 37795
+ FACE : 32992
+ SHELL : 1318
+ SOLID : 1308
+ COMPSOLID : 0
+ COMPOUND : 1
+ SHAPE : 215605
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
+checkview -display result -3d -path ${imagedir}/${test_image}.png