0030024: Data Exchange - STEP, IGES export support of BRep shapes based on tessellated geometry

Support of reading and writing tessellated geometry is added for the following STEP entities:
- triangulated face
- complex triangulated face
- tessellated shell
- tessellated solid
- tessellated shape representation

Models without BRep geometry (mesh formats like STL, OBJ and so on) are supported for writing to STEP.

New parameters are added to enable/disable tessellated geometry reading and writing:
- read.step.tessellated (On/Off/OnNoBRep) (On by default)
- write.step.tessellated (On/Off/OnNoBRep) (OnNoBRep by default)

OnNoBRep - tessellation is read/written only for entities for which there is no BRep representation.

Faces with poly triangulation are written in STEP as triangulated face entities with one coordinates list per face.
Only one poly triangulation per face (returned by BRep_Tool::Triangulation) is written to STEP.
This commit is contained in:
snn
2022-04-04 18:08:34 +03:00
committed by afokin
parent e9c43fee29
commit cec41bb93d
128 changed files with 9920 additions and 403 deletions

View File

@@ -262,3 +262,49 @@ StepVisual_TessellatedCurveSet.hxx
StepVisual_TessellatedCurveSet.cxx
StepVisual_CoordinatesList.hxx
StepVisual_CoordinatesList.cxx
StepVisual_Array1OfTessellatedEdgeOrVertex.hxx
StepVisual_Array1OfTessellatedStructuredItem.hxx
StepVisual_ComplexTriangulatedFace.cxx
StepVisual_ComplexTriangulatedFace.hxx
StepVisual_ComplexTriangulatedSurfaceSet.cxx
StepVisual_ComplexTriangulatedSurfaceSet.hxx
StepVisual_CubicBezierTessellatedEdge.cxx
StepVisual_CubicBezierTessellatedEdge.hxx
StepVisual_CubicBezierTriangulatedFace.cxx
StepVisual_CubicBezierTriangulatedFace.hxx
StepVisual_EdgeOrCurve.cxx
StepVisual_EdgeOrCurve.hxx
StepVisual_FaceOrSurface.cxx
StepVisual_FaceOrSurface.hxx
StepVisual_HArray1OfTessellatedEdgeOrVertex.hxx
StepVisual_HArray1OfTessellatedStructuredItem.hxx
StepVisual_PathOrCompositeCurve.cxx
StepVisual_PathOrCompositeCurve.hxx
StepVisual_TessellatedConnectingEdge.cxx
StepVisual_TessellatedConnectingEdge.hxx
StepVisual_TessellatedEdge.cxx
StepVisual_TessellatedEdge.hxx
StepVisual_TessellatedEdgeOrVertex.cxx
StepVisual_TessellatedEdgeOrVertex.hxx
StepVisual_TessellatedFace.cxx
StepVisual_TessellatedFace.hxx
StepVisual_TessellatedPointSet.cxx
StepVisual_TessellatedPointSet.hxx
StepVisual_TessellatedShapeRepresentation.cxx
StepVisual_TessellatedShapeRepresentation.hxx
StepVisual_TessellatedShapeRepresentationWithAccuracyParameters.cxx
StepVisual_TessellatedShapeRepresentationWithAccuracyParameters.hxx
StepVisual_TessellatedShell.cxx
StepVisual_TessellatedShell.hxx
StepVisual_TessellatedSolid.cxx
StepVisual_TessellatedSolid.hxx
StepVisual_TessellatedStructuredItem.cxx
StepVisual_TessellatedStructuredItem.hxx
StepVisual_TessellatedSurfaceSet.cxx
StepVisual_TessellatedSurfaceSet.hxx
StepVisual_TessellatedVertex.cxx
StepVisual_TessellatedVertex.hxx
StepVisual_TessellatedWire.cxx
StepVisual_TessellatedWire.hxx
StepVisual_TriangulatedFace.cxx
StepVisual_TriangulatedFace.hxx

View File

@@ -0,0 +1,26 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_Array1OfTessellatedEdgeOrVertex_HeaderFile
#define StepVisual_Array1OfTessellatedEdgeOrVertex_HeaderFile
#include <StepVisual_TessellatedEdgeOrVertex.hxx>
#include <NCollection_Array1.hxx>
typedef NCollection_Array1<StepVisual_TessellatedEdgeOrVertex> StepVisual_Array1OfTessellatedEdgeOrVertex;
#endif

View File

@@ -0,0 +1,26 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_Array1OfTessellatedStructuredItem_HeaderFile
#define StepVisual_Array1OfTessellatedStructuredItem_HeaderFile
#include <StepVisual_TessellatedStructuredItem.hxx>
#include <NCollection_Array1.hxx>
typedef NCollection_Array1<Handle(StepVisual_TessellatedStructuredItem)> StepVisual_Array1OfTessellatedStructuredItem;
#endif

View File

@@ -0,0 +1,171 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_ComplexTriangulatedFace.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_ComplexTriangulatedFace, StepVisual_TessellatedFace)
//=======================================================================
//function : StepVisual_ComplexTriangulatedFace
//purpose :
//=======================================================================
StepVisual_ComplexTriangulatedFace::StepVisual_ComplexTriangulatedFace ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedFace::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangleStrips,
const Handle(TColStd_HArray2OfInteger)& theTriangleFans)
{
StepVisual_TessellatedFace::Init(theRepresentationItem_Name,
theTessellatedFace_Coordinates,
theTessellatedFace_Pnmax,
theTessellatedFace_Normals,
theHasTessellatedFace_GeometricLink,
theTessellatedFace_GeometricLink);
myPnindex = thePnindex;
myTriangleStrips = theTriangleStrips;
myTriangleFans = theTriangleFans;
}
//=======================================================================
//function : Pnindex
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_ComplexTriangulatedFace::Pnindex () const
{
return myPnindex;
}
//=======================================================================
//function : SetPnindex
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedFace::SetPnindex(const Handle(TColStd_HArray1OfInteger)& thePnindex)
{
myPnindex = thePnindex;
}
//=======================================================================
//function : NbPnindex
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedFace::NbPnindex() const
{
if (myPnindex.IsNull())
{
return 0;
}
return myPnindex->Length();
}
//=======================================================================
//function : PnindexValue
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedFace::PnindexValue(const Standard_Integer theNum) const
{
return myPnindex->Value(theNum);
}
//=======================================================================
//function : TriangleStrips
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_ComplexTriangulatedFace::TriangleStrips () const
{
return myTriangleStrips;
}
//=======================================================================
//function : SetTriangleStrips
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedFace::SetTriangleStrips(const Handle(TColStd_HArray2OfInteger)& theTriangleStrips)
{
myTriangleStrips = theTriangleStrips;
}
//=======================================================================
//function : NbTriangleStrips
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedFace::NbTriangleStrips() const
{
if (myTriangleStrips.IsNull())
{
return 0;
}
return myTriangleStrips->ColLength();
}
//=======================================================================
//function : TriangleFans
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_ComplexTriangulatedFace::TriangleFans () const
{
return myTriangleFans;
}
//=======================================================================
//function : SetTriangleFans
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedFace::SetTriangleFans(const Handle(TColStd_HArray2OfInteger)& theTriangleFans)
{
myTriangleFans = theTriangleFans;
}
//=======================================================================
//function : NbTriangleFans
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedFace::NbTriangleFans() const
{
if (myTriangleFans.IsNull())
{
return 0;
}
return myTriangleFans->ColLength();
}

View File

@@ -0,0 +1,89 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_ComplexTriangulatedFace_HeaderFile_
#define _StepVisual_ComplexTriangulatedFace_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedFace.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray2OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_ComplexTriangulatedFace, StepVisual_TessellatedFace)
//! Representation of STEP entity ComplexTriangulatedFace
class StepVisual_ComplexTriangulatedFace : public StepVisual_TessellatedFace
{
public :
//! default constructor
Standard_EXPORT StepVisual_ComplexTriangulatedFace();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangleStrips,
const Handle(TColStd_HArray2OfInteger)& theTriangleFans);
//! Returns field Pnindex
Standard_EXPORT Handle(TColStd_HArray1OfInteger) Pnindex() const;
//! Sets field Pnindex
Standard_EXPORT void SetPnindex (const Handle(TColStd_HArray1OfInteger)& thePnindex);
//! Returns number of Pnindex
Standard_EXPORT Standard_Integer NbPnindex() const;
//! Returns value of Pnindex by its num
Standard_EXPORT Standard_Integer PnindexValue(const Standard_Integer theNum) const;
//! Returns field TriangleStrips
Standard_EXPORT Handle(TColStd_HArray2OfInteger) TriangleStrips() const;
//! Sets field TriangleStrips
Standard_EXPORT void SetTriangleStrips (const Handle(TColStd_HArray2OfInteger)& theTriangleStrips);
//! Returns number of TriangleStrips
Standard_EXPORT Standard_Integer NbTriangleStrips() const;
//! Returns field TriangleFans
Standard_EXPORT Handle(TColStd_HArray2OfInteger) TriangleFans() const;
//! Sets field TriangleFans
Standard_EXPORT void SetTriangleFans (const Handle(TColStd_HArray2OfInteger)& theTriangleFans);
//! Returns number of TriangleFans
Standard_EXPORT Standard_Integer NbTriangleFans() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_ComplexTriangulatedFace, StepVisual_TessellatedFace)
private:
Handle(TColStd_HArray1OfInteger) myPnindex;
Handle(TColStd_HArray2OfInteger) myTriangleStrips;
Handle(TColStd_HArray2OfInteger) myTriangleFans;
};
#endif // _StepVisual_ComplexTriangulatedFace_HeaderFile_

View File

@@ -0,0 +1,167 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_ComplexTriangulatedSurfaceSet.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_ComplexTriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
//=======================================================================
//function : StepVisual_ComplexTriangulatedSurfaceSet
//purpose :
//=======================================================================
StepVisual_ComplexTriangulatedSurfaceSet::StepVisual_ComplexTriangulatedSurfaceSet ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedSurfaceSet::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedSurfaceSet_Coordinates,
const Standard_Integer theTessellatedSurfaceSet_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedSurfaceSet_Normals,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangleStrips,
const Handle(TColStd_HArray2OfInteger)& theTriangleFans)
{
StepVisual_TessellatedSurfaceSet::Init(theRepresentationItem_Name,
theTessellatedSurfaceSet_Coordinates,
theTessellatedSurfaceSet_Pnmax,
theTessellatedSurfaceSet_Normals);
myPnindex = thePnindex;
myTriangleStrips = theTriangleStrips;
myTriangleFans = theTriangleFans;
}
//=======================================================================
//function : Pnindex
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_ComplexTriangulatedSurfaceSet::Pnindex () const
{
return myPnindex;
}
//=======================================================================
//function : SetPnindex
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedSurfaceSet::SetPnindex(const Handle(TColStd_HArray1OfInteger)& thePnindex)
{
myPnindex = thePnindex;
}
//=======================================================================
//function : NbPnindex
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedSurfaceSet::NbPnindex() const
{
if (myPnindex.IsNull())
{
return 0;
}
return myPnindex->Length();
}
//=======================================================================
//function : PnindexValue
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedSurfaceSet::PnindexValue(const Standard_Integer theNum) const
{
return myPnindex->Value(theNum);
}
//=======================================================================
//function : TriangleStrips
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_ComplexTriangulatedSurfaceSet::TriangleStrips () const
{
return myTriangleStrips;
}
//=======================================================================
//function : SetTriangleStrips
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedSurfaceSet::SetTriangleStrips(const Handle(TColStd_HArray2OfInteger)& theTriangleStrips)
{
myTriangleStrips = theTriangleStrips;
}
//=======================================================================
//function : NbTriangleStrips
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedSurfaceSet::NbTriangleStrips() const
{
if (myTriangleStrips.IsNull())
{
return 0;
}
return myTriangleStrips->ColLength();
}
//=======================================================================
//function : TriangleFans
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_ComplexTriangulatedSurfaceSet::TriangleFans () const
{
return myTriangleFans;
}
//=======================================================================
//function : SetTriangleFans
//purpose :
//=======================================================================
void StepVisual_ComplexTriangulatedSurfaceSet::SetTriangleFans(const Handle(TColStd_HArray2OfInteger)& theTriangleFans)
{
myTriangleFans = theTriangleFans;
}
//=======================================================================
//function : NbTriangleFans
//purpose :
//=======================================================================
Standard_Integer StepVisual_ComplexTriangulatedSurfaceSet::NbTriangleFans() const
{
if (myTriangleFans.IsNull())
{
return 0;
}
return myTriangleFans->ColLength();
}

View File

@@ -0,0 +1,87 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_ComplexTriangulatedSurfaceSet_HeaderFile_
#define _StepVisual_ComplexTriangulatedSurfaceSet_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedSurfaceSet.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray2OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_ComplexTriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
//! Representation of STEP entity ComplexTriangulatedSurfaceSet
class StepVisual_ComplexTriangulatedSurfaceSet : public StepVisual_TessellatedSurfaceSet
{
public :
//! default constructor
Standard_EXPORT StepVisual_ComplexTriangulatedSurfaceSet();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedSurfaceSet_Coordinates,
const Standard_Integer theTessellatedSurfaceSet_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedSurfaceSet_Normals,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangleStrips,
const Handle(TColStd_HArray2OfInteger)& theTriangleFans);
//! Returns field Pnindex
Standard_EXPORT Handle(TColStd_HArray1OfInteger) Pnindex() const;
//! Sets field Pnindex
Standard_EXPORT void SetPnindex (const Handle(TColStd_HArray1OfInteger)& thePnindex);
//! Returns number of Pnindex
Standard_EXPORT Standard_Integer NbPnindex() const;
//! Returns value of Pnindex by its num
Standard_EXPORT Standard_Integer PnindexValue(const Standard_Integer theNum) const;
//! Returns field TriangleStrips
Standard_EXPORT Handle(TColStd_HArray2OfInteger) TriangleStrips() const;
//! Sets field TriangleStrips
Standard_EXPORT void SetTriangleStrips (const Handle(TColStd_HArray2OfInteger)& theTriangleStrips);
//! Returns number of TriangleStrips
Standard_EXPORT Standard_Integer NbTriangleStrips() const;
//! Returns field TriangleFans
Standard_EXPORT Handle(TColStd_HArray2OfInteger) TriangleFans() const;
//! Sets field TriangleFans
Standard_EXPORT void SetTriangleFans (const Handle(TColStd_HArray2OfInteger)& theTriangleFans);
//! Returns number of TriangleFans
Standard_EXPORT Standard_Integer NbTriangleFans() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_ComplexTriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
private:
Handle(TColStd_HArray1OfInteger) myPnindex;
Handle(TColStd_HArray2OfInteger) myTriangleStrips;
Handle(TColStd_HArray2OfInteger) myTriangleFans;
};
#endif // _StepVisual_ComplexTriangulatedSurfaceSet_HeaderFile_

View File

@@ -0,0 +1,28 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_CubicBezierTessellatedEdge.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_CubicBezierTessellatedEdge, StepVisual_TessellatedEdge)
//=======================================================================
//function : StepVisual_CubicBezierTessellatedEdge
//purpose :
//=======================================================================
StepVisual_CubicBezierTessellatedEdge::StepVisual_CubicBezierTessellatedEdge ()
{
}

View File

@@ -0,0 +1,40 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_CubicBezierTessellatedEdge_HeaderFile_
#define _StepVisual_CubicBezierTessellatedEdge_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedEdge.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_CubicBezierTessellatedEdge, StepVisual_TessellatedEdge)
//! Representation of STEP entity CubicBezierTessellatedEdge
class StepVisual_CubicBezierTessellatedEdge : public StepVisual_TessellatedEdge
{
public :
//! default constructor
Standard_EXPORT StepVisual_CubicBezierTessellatedEdge();
DEFINE_STANDARD_RTTIEXT(StepVisual_CubicBezierTessellatedEdge, StepVisual_TessellatedEdge)
};
#endif // _StepVisual_CubicBezierTessellatedEdge_HeaderFile_

View File

@@ -0,0 +1,80 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_CubicBezierTriangulatedFace.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_CubicBezierTriangulatedFace, StepVisual_TessellatedFace)
//=======================================================================
//function : StepVisual_CubicBezierTriangulatedFace
//purpose :
//=======================================================================
StepVisual_CubicBezierTriangulatedFace::StepVisual_CubicBezierTriangulatedFace ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_CubicBezierTriangulatedFace::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray2OfInteger)& theCtriangles)
{
StepVisual_TessellatedFace::Init(theRepresentationItem_Name,
theTessellatedFace_Coordinates,
theTessellatedFace_Pnmax,
theTessellatedFace_Normals,
theHasTessellatedFace_GeometricLink,
theTessellatedFace_GeometricLink);
myCtriangles = theCtriangles;
}
//=======================================================================
//function : Ctriangles
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_CubicBezierTriangulatedFace::Ctriangles () const
{
return myCtriangles;
}
//=======================================================================
//function : SetCtriangles
//purpose :
//=======================================================================
void StepVisual_CubicBezierTriangulatedFace::SetCtriangles(const Handle(TColStd_HArray2OfInteger)& theCtriangles)
{
myCtriangles = theCtriangles;
}
Standard_Integer StepVisual_CubicBezierTriangulatedFace::NbCtriangles() const
{
if (myCtriangles.IsNull())
{
return 0;
}
return myCtriangles->ColLength();
}

View File

@@ -0,0 +1,63 @@
// Created on : Thu Mar 24 18:30:11 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_CubicBezierTriangulatedFace_HeaderFile_
#define _StepVisual_CubicBezierTriangulatedFace_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedFace.hxx>
#include <TColStd_HArray2OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_CubicBezierTriangulatedFace, StepVisual_TessellatedFace)
//! Representation of STEP entity CubicBezierTriangulatedFace
class StepVisual_CubicBezierTriangulatedFace : public StepVisual_TessellatedFace
{
public :
//! default constructor
Standard_EXPORT StepVisual_CubicBezierTriangulatedFace();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray2OfInteger)& theCtriangles);
//! Returns field Ctriangles
Standard_EXPORT Handle(TColStd_HArray2OfInteger) Ctriangles() const;
//! Sets field Ctriangles
Standard_EXPORT void SetCtriangles (const Handle(TColStd_HArray2OfInteger)& theCtriangles);
//! Returns number of Ctriangles
Standard_EXPORT Standard_Integer NbCtriangles() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_CubicBezierTriangulatedFace, StepVisual_TessellatedFace)
private:
Handle(TColStd_HArray2OfInteger) myCtriangles;
};
#endif // _StepVisual_CubicBezierTriangulatedFace_HeaderFile_

View File

@@ -0,0 +1,61 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_EdgeOrCurve.hxx>
#include <StepGeom_Curve.hxx>
#include <StepShape_Edge.hxx>
//=======================================================================
//function : StepVisual_EdgeOrCurve
//purpose :
//=======================================================================
StepVisual_EdgeOrCurve::StepVisual_EdgeOrCurve ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepVisual_EdgeOrCurve::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepGeom_Curve))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepShape_Edge))) return 2;
return 0;
}
//=======================================================================
//function : Curve
//purpose :
//=======================================================================
Handle(StepGeom_Curve) StepVisual_EdgeOrCurve::Curve () const
{
return Handle(StepGeom_Curve)::DownCast(Value());
}
//=======================================================================
//function : Edge
//purpose :
//=======================================================================
Handle(StepShape_Edge) StepVisual_EdgeOrCurve::Edge () const
{
return Handle(StepShape_Edge)::DownCast(Value());
}

View File

@@ -0,0 +1,53 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_EdgeOrCurve_HeaderFile
#define _StepVisual_EdgeOrCurve_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepGeom_Curve;
class StepShape_Edge;
//! Representation of STEP SELECT type EdgeOrCurve
class StepVisual_EdgeOrCurve : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor
Standard_EXPORT StepVisual_EdgeOrCurve();
//! Recognizes a kind of EdgeOrCurve select type
//! -- 1 -> Curve
//! -- 2 -> Edge
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
//! Returns Value as Curve (or Null if another type)
Standard_EXPORT Handle(StepGeom_Curve) Curve() const;
//! Returns Value as Edge (or Null if another type)
Standard_EXPORT Handle(StepShape_Edge) Edge() const;
};
#endif // _StepVisual_EdgeOrCurve_HeaderFile

View File

@@ -0,0 +1,61 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_FaceOrSurface.hxx>
#include <StepShape_Face.hxx>
#include <StepGeom_Surface.hxx>
//=======================================================================
//function : StepVisual_FaceOrSurface
//purpose :
//=======================================================================
StepVisual_FaceOrSurface::StepVisual_FaceOrSurface ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepVisual_FaceOrSurface::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepShape_Face))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepGeom_Surface))) return 2;
return 0;
}
//=======================================================================
//function : Face
//purpose :
//=======================================================================
Handle(StepShape_Face) StepVisual_FaceOrSurface::Face () const
{
return Handle(StepShape_Face)::DownCast(Value());
}
//=======================================================================
//function : Surface
//purpose :
//=======================================================================
Handle(StepGeom_Surface) StepVisual_FaceOrSurface::Surface () const
{
return Handle(StepGeom_Surface)::DownCast(Value());
}

View File

@@ -0,0 +1,53 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_FaceOrSurface_HeaderFile
#define _StepVisual_FaceOrSurface_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepShape_Face;
class StepGeom_Surface;
//! Representation of STEP SELECT type FaceOrSurface
class StepVisual_FaceOrSurface : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor
Standard_EXPORT StepVisual_FaceOrSurface();
//! Recognizes a kind of FaceOrSurface select type
//! -- 1 -> Face
//! -- 2 -> Surface
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
//! Returns Value as Face (or Null if another type)
Standard_EXPORT Handle(StepShape_Face) Face() const;
//! Returns Value as Surface (or Null if another type)
Standard_EXPORT Handle(StepGeom_Surface) Surface() const;
};
#endif // _StepVisual_FaceOrSurface_HeaderFile

View File

@@ -0,0 +1,26 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_HArray1OfTessellatedEdgeOrVertex_HeaderFile
#define StepVisual_HArray1OfTessellatedEdgeOrVertex_HeaderFile
#include <StepVisual_Array1OfTessellatedEdgeOrVertex.hxx>
#include <NCollection_HArray1.hxx>
DEFINE_HARRAY1(StepVisual_HArray1OfTessellatedEdgeOrVertex, StepVisual_Array1OfTessellatedEdgeOrVertex);
#endif

View File

@@ -0,0 +1,26 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_HArray1OfTessellatedStructuredItem_HeaderFile
#define StepVisual_HArray1OfTessellatedStructuredItem_HeaderFile
#include <StepVisual_Array1OfTessellatedStructuredItem.hxx>
#include <NCollection_HArray1.hxx>
DEFINE_HARRAY1(StepVisual_HArray1OfTessellatedStructuredItem, StepVisual_Array1OfTessellatedStructuredItem);
#endif

View File

@@ -0,0 +1,61 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_PathOrCompositeCurve.hxx>
#include <StepGeom_CompositeCurve.hxx>
#include <StepShape_Path.hxx>
//=======================================================================
//function : StepVisual_PathOrCompositeCurve
//purpose :
//=======================================================================
StepVisual_PathOrCompositeCurve::StepVisual_PathOrCompositeCurve ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepVisual_PathOrCompositeCurve::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepGeom_CompositeCurve))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepShape_Path))) return 2;
return 0;
}
//=======================================================================
//function : CompositeCurve
//purpose :
//=======================================================================
Handle(StepGeom_CompositeCurve) StepVisual_PathOrCompositeCurve::CompositeCurve () const
{
return Handle(StepGeom_CompositeCurve)::DownCast(Value());
}
//=======================================================================
//function : Path
//purpose :
//=======================================================================
Handle(StepShape_Path) StepVisual_PathOrCompositeCurve::Path () const
{
return Handle(StepShape_Path)::DownCast(Value());
}

View File

@@ -0,0 +1,53 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_PathOrCompositeCurve_HeaderFile
#define _StepVisual_PathOrCompositeCurve_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepGeom_CompositeCurve;
class StepShape_Path;
//! Representation of STEP SELECT type PathOrCompositeCurve
class StepVisual_PathOrCompositeCurve : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor
Standard_EXPORT StepVisual_PathOrCompositeCurve();
//! Recognizes a kind of PathOrCompositeCurve select type
//! -- 1 -> CompositeCurve
//! -- 2 -> Path
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
//! Returns Value as CompositeCurve (or Null if another type)
Standard_EXPORT Handle(StepGeom_CompositeCurve) CompositeCurve() const;
//! Returns Value as Path (or Null if another type)
Standard_EXPORT Handle(StepShape_Path) Path() const;
};
#endif // _StepVisual_PathOrCompositeCurve_HeaderFile

View File

@@ -0,0 +1,213 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedConnectingEdge.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedConnectingEdge, StepVisual_TessellatedEdge)
//=======================================================================
//function : StepVisual_TessellatedConnectingEdge
//purpose :
//=======================================================================
StepVisual_TessellatedConnectingEdge::StepVisual_TessellatedConnectingEdge ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedEdge_Coordinates,
const Standard_Boolean theHasTessellatedEdge_GeometricLink,
const StepVisual_EdgeOrCurve& theTessellatedEdge_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& theTessellatedEdge_LineStrip,
const StepData_Logical theSmooth,
const Handle(StepVisual_TessellatedFace)& theFace1,
const Handle(StepVisual_TessellatedFace)& theFace2,
const Handle(TColStd_HArray1OfInteger)& theLineStripFace1,
const Handle(TColStd_HArray1OfInteger)& theLineStripFace2)
{
StepVisual_TessellatedEdge::Init(theRepresentationItem_Name,
theTessellatedEdge_Coordinates,
theHasTessellatedEdge_GeometricLink,
theTessellatedEdge_GeometricLink,
theTessellatedEdge_LineStrip);
mySmooth = theSmooth;
myFace1 = theFace1;
myFace2 = theFace2;
myLineStripFace1 = theLineStripFace1;
myLineStripFace2 = theLineStripFace2;
}
//=======================================================================
//function : Smooth
//purpose :
//=======================================================================
StepData_Logical StepVisual_TessellatedConnectingEdge::Smooth () const
{
return mySmooth;
}
//=======================================================================
//function : SetSmooth
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::SetSmooth(const StepData_Logical theSmooth)
{
mySmooth = theSmooth;
}
//=======================================================================
//function : Face1
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedFace) StepVisual_TessellatedConnectingEdge::Face1 () const
{
return myFace1;
}
//=======================================================================
//function : SetFace1
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::SetFace1(const Handle(StepVisual_TessellatedFace)& theFace1)
{
myFace1 = theFace1;
}
//=======================================================================
//function : Face2
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedFace) StepVisual_TessellatedConnectingEdge::Face2 () const
{
return myFace2;
}
//=======================================================================
//function : SetFace2
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::SetFace2(const Handle(StepVisual_TessellatedFace)& theFace2)
{
myFace2 = theFace2;
}
//=======================================================================
//function : LineStripFace1
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_TessellatedConnectingEdge::LineStripFace1 () const
{
return myLineStripFace1;
}
//=======================================================================
//function : SetLineStripFace1
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::SetLineStripFace1(const Handle(TColStd_HArray1OfInteger)& theLineStripFace1)
{
myLineStripFace1 = theLineStripFace1;
}
//=======================================================================
//function : NbLineStripFace1
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedConnectingEdge::NbLineStripFace1() const
{
if (myLineStripFace1.IsNull())
{
return 0;
}
return myLineStripFace1->Length();
}
//=======================================================================
//function : LineStripFace1Value
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedConnectingEdge::LineStripFace1Value(const Standard_Integer theNum) const
{
return myLineStripFace1->Value(theNum);
}
//=======================================================================
//function : LineStripFace2
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_TessellatedConnectingEdge::LineStripFace2 () const
{
return myLineStripFace2;
}
//=======================================================================
//function : SetLineStripFace2
//purpose :
//=======================================================================
void StepVisual_TessellatedConnectingEdge::SetLineStripFace2(const Handle(TColStd_HArray1OfInteger)& theLineStripFace2)
{
myLineStripFace2 = theLineStripFace2;
}
//=======================================================================
//function : NbLineStripFace2
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedConnectingEdge::NbLineStripFace2() const
{
if (myLineStripFace2.IsNull())
{
return 0;
}
return myLineStripFace2->Length();
}
//=======================================================================
//function : LineStripFace2Value
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedConnectingEdge::LineStripFace2Value(const Standard_Integer theNum) const
{
return myLineStripFace2->Value(theNum);
}

View File

@@ -0,0 +1,105 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedConnectingEdge_HeaderFile_
#define _StepVisual_TessellatedConnectingEdge_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedEdge.hxx>
#include <StepData_Logical.hxx>
#include <StepVisual_TessellatedFace.hxx>
#include <TColStd_HArray1OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedConnectingEdge, StepVisual_TessellatedEdge)
//! Representation of STEP entity TessellatedConnectingEdge
class StepVisual_TessellatedConnectingEdge : public StepVisual_TessellatedEdge
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedConnectingEdge();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedEdge_Coordinates,
const Standard_Boolean theHasTessellatedEdge_GeometricLink,
const StepVisual_EdgeOrCurve& theTessellatedEdge_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& theTessellatedEdge_LineStrip,
const StepData_Logical theSmooth,
const Handle(StepVisual_TessellatedFace)& theFace1,
const Handle(StepVisual_TessellatedFace)& theFace2,
const Handle(TColStd_HArray1OfInteger)& theLineStripFace1,
const Handle(TColStd_HArray1OfInteger)& theLineStripFace2);
//! Returns field Smooth
Standard_EXPORT StepData_Logical Smooth() const;
//! Sets field Smooth
Standard_EXPORT void SetSmooth (const StepData_Logical theSmooth);
//! Returns field Face1
Standard_EXPORT Handle(StepVisual_TessellatedFace) Face1() const;
//! Sets field Face1
Standard_EXPORT void SetFace1 (const Handle(StepVisual_TessellatedFace)& theFace1);
//! Returns field Face2
Standard_EXPORT Handle(StepVisual_TessellatedFace) Face2() const;
//! Sets field Face2
Standard_EXPORT void SetFace2 (const Handle(StepVisual_TessellatedFace)& theFace2);
//! Returns field LineStripFace1
Standard_EXPORT Handle(TColStd_HArray1OfInteger) LineStripFace1() const;
//! Sets field LineStripFace1
Standard_EXPORT void SetLineStripFace1 (const Handle(TColStd_HArray1OfInteger)& theLineStripFace1);
//! Returns number of LineStripFace1
Standard_EXPORT Standard_Integer NbLineStripFace1() const;
//! Returns value of LineStripFace1 by its num
Standard_EXPORT Standard_Integer LineStripFace1Value(const Standard_Integer theNum) const;
//! Returns field LineStripFace2
Standard_EXPORT Handle(TColStd_HArray1OfInteger) LineStripFace2() const;
//! Sets field LineStripFace2
Standard_EXPORT void SetLineStripFace2 (const Handle(TColStd_HArray1OfInteger)& theLineStripFace2);
//! Returns number of LineStripFace2
Standard_EXPORT Standard_Integer NbLineStripFace2() const;
//! Returns value of LineStripFace2 by its num
Standard_EXPORT Standard_Integer LineStripFace2Value(const Standard_Integer theNum) const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedConnectingEdge, StepVisual_TessellatedEdge)
private:
StepData_Logical mySmooth;
Handle(StepVisual_TessellatedFace) myFace1;
Handle(StepVisual_TessellatedFace) myFace2;
Handle(TColStd_HArray1OfInteger) myLineStripFace1;
Handle(TColStd_HArray1OfInteger) myLineStripFace2;
};
#endif // _StepVisual_TessellatedConnectingEdge_HeaderFile_

View File

@@ -0,0 +1,153 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedEdge.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedEdge, StepVisual_TessellatedStructuredItem)
//=======================================================================
//function : StepVisual_TessellatedEdge
//purpose :
//=======================================================================
StepVisual_TessellatedEdge::StepVisual_TessellatedEdge ()
{
myHasGeometricLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedEdge::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Boolean theHasGeometricLink,
const StepVisual_EdgeOrCurve& theGeometricLink,
const Handle(TColStd_HArray1OfInteger)& theLineStrip)
{
StepVisual_TessellatedStructuredItem::Init(theRepresentationItem_Name);
myCoordinates = theCoordinates;
myHasGeometricLink = theHasGeometricLink;
if (myHasGeometricLink)
{
myGeometricLink = theGeometricLink;
}
else
{
myGeometricLink = StepVisual_EdgeOrCurve();
}
myLineStrip = theLineStrip;
}
//=======================================================================
//function : Coordinates
//purpose :
//=======================================================================
Handle(StepVisual_CoordinatesList) StepVisual_TessellatedEdge::Coordinates () const
{
return myCoordinates;
}
//=======================================================================
//function : SetCoordinates
//purpose :
//=======================================================================
void StepVisual_TessellatedEdge::SetCoordinates(const Handle(StepVisual_CoordinatesList)& theCoordinates)
{
myCoordinates = theCoordinates;
}
//=======================================================================
//function : GeometricLink
//purpose :
//=======================================================================
StepVisual_EdgeOrCurve StepVisual_TessellatedEdge::GeometricLink () const
{
return myGeometricLink;
}
//=======================================================================
//function : SetGeometricLink
//purpose :
//=======================================================================
void StepVisual_TessellatedEdge::SetGeometricLink(const StepVisual_EdgeOrCurve& theGeometricLink)
{
myGeometricLink = theGeometricLink;
}
//=======================================================================
//function : HasGeometricLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedEdge::HasGeometricLink () const
{
return myHasGeometricLink;
}
//=======================================================================
//function : LineStrip
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_TessellatedEdge::LineStrip () const
{
return myLineStrip;
}
//=======================================================================
//function : SetLineStrip
//purpose :
//=======================================================================
void StepVisual_TessellatedEdge::SetLineStrip(const Handle(TColStd_HArray1OfInteger)& theLineStrip)
{
myLineStrip = theLineStrip;
}
//=======================================================================
//function : NbLineStrip
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedEdge::NbLineStrip() const
{
if (myLineStrip.IsNull())
{
return 0;
}
return myLineStrip->Length();
}
//=======================================================================
//function : LineStripValue
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedEdge::LineStripValue(const Standard_Integer theNum) const
{
return myLineStrip->Value(theNum);
}

View File

@@ -0,0 +1,84 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedEdge_HeaderFile_
#define _StepVisual_TessellatedEdge_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedStructuredItem.hxx>
#include <StepVisual_CoordinatesList.hxx>
#include <StepVisual_EdgeOrCurve.hxx>
#include <TColStd_HArray1OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedEdge, StepVisual_TessellatedStructuredItem)
//! Representation of STEP entity TessellatedEdge
class StepVisual_TessellatedEdge : public StepVisual_TessellatedStructuredItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedEdge();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Boolean theHasGeometricLink,
const StepVisual_EdgeOrCurve& theGeometricLink,
const Handle(TColStd_HArray1OfInteger)& theLineStrip);
//! Returns field Coordinates
Standard_EXPORT Handle(StepVisual_CoordinatesList) Coordinates() const;
//! Sets field Coordinates
Standard_EXPORT void SetCoordinates (const Handle(StepVisual_CoordinatesList)& theCoordinates);
//! Returns field GeometricLink
Standard_EXPORT StepVisual_EdgeOrCurve GeometricLink() const;
//! Sets field GeometricLink
Standard_EXPORT void SetGeometricLink (const StepVisual_EdgeOrCurve& theGeometricLink);
//! Returns True if optional field GeometricLink is defined
Standard_EXPORT Standard_Boolean HasGeometricLink() const;
//! Returns field LineStrip
Standard_EXPORT Handle(TColStd_HArray1OfInteger) LineStrip() const;
//! Sets field LineStrip
Standard_EXPORT void SetLineStrip (const Handle(TColStd_HArray1OfInteger)& theLineStrip);
//! Returns number of LineStrip
Standard_EXPORT Standard_Integer NbLineStrip() const;
//! Returns value of LineStrip by its num
Standard_EXPORT Standard_Integer LineStripValue(const Standard_Integer theNum) const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedEdge, StepVisual_TessellatedStructuredItem)
private:
Handle(StepVisual_CoordinatesList) myCoordinates;
StepVisual_EdgeOrCurve myGeometricLink; //!< optional
Handle(TColStd_HArray1OfInteger) myLineStrip;
Standard_Boolean myHasGeometricLink; //!< flag "is GeometricLink defined"
};
#endif // _StepVisual_TessellatedEdge_HeaderFile_

View File

@@ -0,0 +1,61 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedEdgeOrVertex.hxx>
#include <StepVisual_TessellatedEdge.hxx>
#include <StepVisual_TessellatedVertex.hxx>
//=======================================================================
//function : StepVisual_TessellatedEdgeOrVertex
//purpose :
//=======================================================================
StepVisual_TessellatedEdgeOrVertex::StepVisual_TessellatedEdgeOrVertex ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedEdgeOrVertex::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepVisual_TessellatedEdge))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepVisual_TessellatedVertex))) return 2;
return 0;
}
//=======================================================================
//function : TessellatedEdge
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedEdge) StepVisual_TessellatedEdgeOrVertex::TessellatedEdge () const
{
return Handle(StepVisual_TessellatedEdge)::DownCast(Value());
}
//=======================================================================
//function : TessellatedVertex
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedVertex) StepVisual_TessellatedEdgeOrVertex::TessellatedVertex () const
{
return Handle(StepVisual_TessellatedVertex)::DownCast(Value());
}

View File

@@ -0,0 +1,53 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedEdgeOrVertex_HeaderFile
#define _StepVisual_TessellatedEdgeOrVertex_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <StepData_SelectType.hxx>
#include <Standard_Integer.hxx>
class Standard_Transient;
class StepVisual_TessellatedEdge;
class StepVisual_TessellatedVertex;
//! Representation of STEP SELECT type TessellatedEdgeOrVertex
class StepVisual_TessellatedEdgeOrVertex : public StepData_SelectType
{
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor
Standard_EXPORT StepVisual_TessellatedEdgeOrVertex();
//! Recognizes a kind of TessellatedEdgeOrVertex select type
//! -- 1 -> TessellatedEdge
//! -- 2 -> TessellatedVertex
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
//! Returns Value as TessellatedEdge (or Null if another type)
Standard_EXPORT Handle(StepVisual_TessellatedEdge) TessellatedEdge() const;
//! Returns Value as TessellatedVertex (or Null if another type)
Standard_EXPORT Handle(StepVisual_TessellatedVertex) TessellatedVertex() const;
};
#endif // _StepVisual_TessellatedEdgeOrVertex_HeaderFile

View File

@@ -0,0 +1,164 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedFace.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedFace, StepVisual_TessellatedStructuredItem)
//=======================================================================
//function : StepVisual_TessellatedFace
//purpose :
//=======================================================================
StepVisual_TessellatedFace::StepVisual_TessellatedFace ()
{
myHasGeometricLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedFace::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Integer thePnmax,
const Handle(TColStd_HArray2OfReal)& theNormals,
const Standard_Boolean theHasGeometricLink,
const StepVisual_FaceOrSurface& theGeometricLink)
{
StepVisual_TessellatedStructuredItem::Init(theRepresentationItem_Name);
myCoordinates = theCoordinates;
myPnmax = thePnmax;
myNormals = theNormals;
myHasGeometricLink = theHasGeometricLink;
if (myHasGeometricLink)
{
myGeometricLink = theGeometricLink;
}
else
{
myGeometricLink = StepVisual_FaceOrSurface();
}
}
//=======================================================================
//function : Coordinates
//purpose :
//=======================================================================
Handle(StepVisual_CoordinatesList) StepVisual_TessellatedFace::Coordinates () const
{
return myCoordinates;
}
//=======================================================================
//function : SetCoordinates
//purpose :
//=======================================================================
void StepVisual_TessellatedFace::SetCoordinates(const Handle(StepVisual_CoordinatesList)& theCoordinates)
{
myCoordinates = theCoordinates;
}
//=======================================================================
//function : Pnmax
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedFace::Pnmax () const
{
return myPnmax;
}
//=======================================================================
//function : SetPnmax
//purpose :
//=======================================================================
void StepVisual_TessellatedFace::SetPnmax(const Standard_Integer thePnmax)
{
myPnmax = thePnmax;
}
//=======================================================================
//function : Normals
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfReal) StepVisual_TessellatedFace::Normals () const
{
return myNormals;
}
//=======================================================================
//function : SetNormals
//purpose :
//=======================================================================
void StepVisual_TessellatedFace::SetNormals(const Handle(TColStd_HArray2OfReal)& theNormals)
{
myNormals = theNormals;
}
//=======================================================================
//function : NbNormals
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedFace::NbNormals() const
{
if (myNormals.IsNull())
{
return 0;
}
return myNormals->ColLength();
}
//=======================================================================
//function : GeometricLink
//purpose :
//=======================================================================
StepVisual_FaceOrSurface StepVisual_TessellatedFace::GeometricLink () const
{
return myGeometricLink;
}
//=======================================================================
//function : SetGeometricLink
//purpose :
//=======================================================================
void StepVisual_TessellatedFace::SetGeometricLink(const StepVisual_FaceOrSurface& theGeometricLink)
{
myGeometricLink = theGeometricLink;
}
//=======================================================================
//function : HasGeometricLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedFace::HasGeometricLink () const
{
return myHasGeometricLink;
}

View File

@@ -0,0 +1,89 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedFace_HeaderFile_
#define _StepVisual_TessellatedFace_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedStructuredItem.hxx>
#include <StepVisual_CoordinatesList.hxx>
#include <TColStd_HArray2OfReal.hxx>
#include <StepVisual_FaceOrSurface.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedFace, StepVisual_TessellatedStructuredItem)
//! Representation of STEP entity TessellatedFace
class StepVisual_TessellatedFace : public StepVisual_TessellatedStructuredItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedFace();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Integer thePnmax,
const Handle(TColStd_HArray2OfReal)& theNormals,
const Standard_Boolean theHasGeometricLink,
const StepVisual_FaceOrSurface& theGeometricLink);
//! Returns field Coordinates
Standard_EXPORT Handle(StepVisual_CoordinatesList) Coordinates() const;
//! Sets field Coordinates
Standard_EXPORT void SetCoordinates (const Handle(StepVisual_CoordinatesList)& theCoordinates);
//! Returns field Pnmax
Standard_EXPORT Standard_Integer Pnmax() const;
//! Sets field Pnmax
Standard_EXPORT void SetPnmax (const Standard_Integer thePnmax);
//! Returns field Normals
Standard_EXPORT Handle(TColStd_HArray2OfReal) Normals() const;
//! Sets field Normals
Standard_EXPORT void SetNormals (const Handle(TColStd_HArray2OfReal)& theNormals);
//! Returns number of Normals
Standard_EXPORT Standard_Integer NbNormals() const;
//! Returns field GeometricLink
Standard_EXPORT StepVisual_FaceOrSurface GeometricLink() const;
//! Sets field GeometricLink
Standard_EXPORT void SetGeometricLink (const StepVisual_FaceOrSurface& theGeometricLink);
//! Returns True if optional field GeometricLink is defined
Standard_EXPORT Standard_Boolean HasGeometricLink() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedFace, StepVisual_TessellatedStructuredItem)
private:
Handle(StepVisual_CoordinatesList) myCoordinates;
Standard_Integer myPnmax;
Handle(TColStd_HArray2OfReal) myNormals;
StepVisual_FaceOrSurface myGeometricLink; //!< optional
Standard_Boolean myHasGeometricLink; //!< flag "is GeometricLink defined"
};
#endif // _StepVisual_TessellatedFace_HeaderFile_

View File

@@ -0,0 +1,110 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedPointSet.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedPointSet, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedPointSet
//purpose :
//=======================================================================
StepVisual_TessellatedPointSet::StepVisual_TessellatedPointSet ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedPointSet::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Handle(TColStd_HArray1OfInteger)& thePointList)
{
StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
myCoordinates = theCoordinates;
myPointList = thePointList;
}
//=======================================================================
//function : Coordinates
//purpose :
//=======================================================================
Handle(StepVisual_CoordinatesList) StepVisual_TessellatedPointSet::Coordinates () const
{
return myCoordinates;
}
//=======================================================================
//function : SetCoordinates
//purpose :
//=======================================================================
void StepVisual_TessellatedPointSet::SetCoordinates(const Handle(StepVisual_CoordinatesList)& theCoordinates)
{
myCoordinates = theCoordinates;
}
//=======================================================================
//function : PointList
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_TessellatedPointSet::PointList () const
{
return myPointList;
}
//=======================================================================
//function : SetPointList
//purpose :
//=======================================================================
void StepVisual_TessellatedPointSet::SetPointList(const Handle(TColStd_HArray1OfInteger)& thePointList)
{
myPointList = thePointList;
}
//=======================================================================
//function : NbPointList
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedPointSet::NbPointList() const
{
if (myPointList.IsNull())
{
return 0;
}
return myPointList->Length();
}
//=======================================================================
//function : PointListValue
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedPointSet::PointListValue(const Standard_Integer theNum) const
{
return myPointList->Value(theNum);
}

View File

@@ -0,0 +1,70 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedPointSet_HeaderFile_
#define _StepVisual_TessellatedPointSet_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
#include <StepVisual_CoordinatesList.hxx>
#include <TColStd_HArray1OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedPointSet, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedPointSet
class StepVisual_TessellatedPointSet : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedPointSet();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Handle(TColStd_HArray1OfInteger)& thePointList);
//! Returns field Coordinates
Standard_EXPORT Handle(StepVisual_CoordinatesList) Coordinates() const;
//! Sets field Coordinates
Standard_EXPORT void SetCoordinates (const Handle(StepVisual_CoordinatesList)& theCoordinates);
//! Returns field PointList
Standard_EXPORT Handle(TColStd_HArray1OfInteger) PointList() const;
//! Sets field PointList
Standard_EXPORT void SetPointList (const Handle(TColStd_HArray1OfInteger)& thePointList);
//! Returns number of PointList
Standard_EXPORT Standard_Integer NbPointList() const;
//! Returns value of PointList by its num
Standard_EXPORT Standard_Integer PointListValue(const Standard_Integer theNum) const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedPointSet, StepVisual_TessellatedItem)
private:
Handle(StepVisual_CoordinatesList) myCoordinates;
Handle(TColStd_HArray1OfInteger) myPointList;
};
#endif // _StepVisual_TessellatedPointSet_HeaderFile_

View File

@@ -0,0 +1,28 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedShapeRepresentation.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedShapeRepresentation, StepShape_ShapeRepresentation)
//=======================================================================
//function : StepVisual_TessellatedShapeRepresentation
//purpose :
//=======================================================================
StepVisual_TessellatedShapeRepresentation::StepVisual_TessellatedShapeRepresentation ()
{
}

View File

@@ -0,0 +1,40 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedShapeRepresentation_HeaderFile_
#define _StepVisual_TessellatedShapeRepresentation_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepShape_ShapeRepresentation.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedShapeRepresentation, StepShape_ShapeRepresentation)
//! Representation of STEP entity TessellatedShapeRepresentation
class StepVisual_TessellatedShapeRepresentation : public StepShape_ShapeRepresentation
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedShapeRepresentation();
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedShapeRepresentation, StepShape_ShapeRepresentation)
};
#endif // _StepVisual_TessellatedShapeRepresentation_HeaderFile_

View File

@@ -0,0 +1,91 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedShapeRepresentationWithAccuracyParameters.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedShapeRepresentationWithAccuracyParameters, StepVisual_TessellatedShapeRepresentation)
//=======================================================================
//function : StepVisual_TessellatedShapeRepresentationWithAccuracyParameters
//purpose :
//=======================================================================
StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::StepVisual_TessellatedShapeRepresentationWithAccuracyParameters ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::Init (const Handle(TCollection_HAsciiString)& theRepresentation_Name,
const Handle(StepRepr_HArray1OfRepresentationItem)& theRepresentation_Items,
const Handle(StepRepr_RepresentationContext)& theRepresentation_ContextOfItems,
const Handle(TColStd_HArray1OfReal)& theTessellationAccuracyParameters)
{
StepVisual_TessellatedShapeRepresentation::Init(theRepresentation_Name,
theRepresentation_Items,
theRepresentation_ContextOfItems);
myTessellationAccuracyParameters = theTessellationAccuracyParameters;
}
//=======================================================================
//function : TessellationAccuracyParameters
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfReal) StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::TessellationAccuracyParameters () const
{
return myTessellationAccuracyParameters;
}
//=======================================================================
//function : SetTessellationAccuracyParameters
//purpose :
//=======================================================================
void StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::SetTessellationAccuracyParameters(const Handle(TColStd_HArray1OfReal)& theTessellationAccuracyParameters)
{
myTessellationAccuracyParameters = theTessellationAccuracyParameters;
}
//=======================================================================
//function : NbTessellationAccuracyParameters
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::NbTessellationAccuracyParameters() const
{
if (myTessellationAccuracyParameters.IsNull())
{
return 0;
}
return myTessellationAccuracyParameters->Length();
}
//=======================================================================
//function : TessellationAccuracyParametersValue
//purpose :
//=======================================================================
const Standard_Real& StepVisual_TessellatedShapeRepresentationWithAccuracyParameters::TessellationAccuracyParametersValue(const Standard_Integer theNum) const
{
return myTessellationAccuracyParameters->Value(theNum);
}

View File

@@ -0,0 +1,62 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedShapeRepresentationWithAccuracyParameters_HeaderFile_
#define _StepVisual_TessellatedShapeRepresentationWithAccuracyParameters_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <StepVisual_TessellatedShapeRepresentation.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedShapeRepresentationWithAccuracyParameters, StepVisual_TessellatedShapeRepresentation)
//! Representation of STEP entity TessellatedShapeRepresentationWithAccuracyParameters
class StepVisual_TessellatedShapeRepresentationWithAccuracyParameters : public StepVisual_TessellatedShapeRepresentation
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedShapeRepresentationWithAccuracyParameters();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentation_Name,
const Handle(StepRepr_HArray1OfRepresentationItem)& theRepresentation_Items,
const Handle(StepRepr_RepresentationContext)& theRepresentation_ContextOfItems,
const Handle(TColStd_HArray1OfReal)& theTessellationAccuracyParameters);
//! Returns field TessellationAccuracyParameters
Standard_EXPORT Handle(TColStd_HArray1OfReal) TessellationAccuracyParameters() const;
//! Sets field TessellationAccuracyParameters
Standard_EXPORT void SetTessellationAccuracyParameters (const Handle(TColStd_HArray1OfReal)& theTessellationAccuracyParameters);
//! Returns number of TessellationAccuracyParameters
Standard_EXPORT Standard_Integer NbTessellationAccuracyParameters() const;
//! Returns value of TessellationAccuracyParameters by its num
Standard_EXPORT const Standard_Real& TessellationAccuracyParametersValue(const Standard_Integer theNum) const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedShapeRepresentationWithAccuracyParameters, StepVisual_TessellatedShapeRepresentation)
private:
Handle(TColStd_HArray1OfReal) myTessellationAccuracyParameters;
};
#endif // _StepVisual_TessellatedShapeRepresentationWithAccuracyParameters_HeaderFile_

View File

@@ -0,0 +1,130 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedShell.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedShell, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedShell
//purpose :
//=======================================================================
StepVisual_TessellatedShell::StepVisual_TessellatedShell ()
{
myHasTopologicalLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedShell::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems,
const Standard_Boolean theHasTopologicalLink,
const Handle(StepShape_ConnectedFaceSet)& theTopologicalLink)
{
StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
myItems = theItems;
myHasTopologicalLink = theHasTopologicalLink;
if (myHasTopologicalLink)
{
myTopologicalLink = theTopologicalLink;
}
else
{
myTopologicalLink.Nullify();
}
}
//=======================================================================
//function : Items
//purpose :
//=======================================================================
Handle(StepVisual_HArray1OfTessellatedStructuredItem) StepVisual_TessellatedShell::Items () const
{
return myItems;
}
//=======================================================================
//function : SetItems
//purpose :
//=======================================================================
void StepVisual_TessellatedShell::SetItems(const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems)
{
myItems = theItems;
}
//=======================================================================
//function : NbItems
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedShell::NbItems() const
{
if (myItems.IsNull())
{
return 0;
}
return myItems->Length();
}
//=======================================================================
//function : ItemsValue
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedStructuredItem) StepVisual_TessellatedShell::ItemsValue(const Standard_Integer theNum) const
{
return myItems->Value(theNum);
}
//=======================================================================
//function : TopologicalLink
//purpose :
//=======================================================================
Handle(StepShape_ConnectedFaceSet) StepVisual_TessellatedShell::TopologicalLink () const
{
return myTopologicalLink;
}
//=======================================================================
//function : SetTopologicalLink
//purpose :
//=======================================================================
void StepVisual_TessellatedShell::SetTopologicalLink(const Handle(StepShape_ConnectedFaceSet)& theTopologicalLink)
{
myTopologicalLink = theTopologicalLink;
}
//=======================================================================
//function : HasTopologicalLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedShell::HasTopologicalLink () const
{
return myHasTopologicalLink;
}

View File

@@ -0,0 +1,75 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedShell_HeaderFile_
#define _StepVisual_TessellatedShell_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
#include <StepVisual_HArray1OfTessellatedStructuredItem.hxx>
#include <StepShape_ConnectedFaceSet.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedShell, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedShell
class StepVisual_TessellatedShell : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedShell();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems,
const Standard_Boolean theHasTopologicalLink,
const Handle(StepShape_ConnectedFaceSet)& theTopologicalLink);
//! Returns field Items
Standard_EXPORT Handle(StepVisual_HArray1OfTessellatedStructuredItem) Items() const;
//! Sets field Items
Standard_EXPORT void SetItems (const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems);
//! Returns number of Items
Standard_EXPORT Standard_Integer NbItems() const;
//! Returns value of Items by its num
Standard_EXPORT Handle(StepVisual_TessellatedStructuredItem) ItemsValue(const Standard_Integer theNum) const;
//! Returns field TopologicalLink
Standard_EXPORT Handle(StepShape_ConnectedFaceSet) TopologicalLink() const;
//! Sets field TopologicalLink
Standard_EXPORT void SetTopologicalLink (const Handle(StepShape_ConnectedFaceSet)& theTopologicalLink);
//! Returns True if optional field TopologicalLink is defined
Standard_EXPORT Standard_Boolean HasTopologicalLink() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedShell, StepVisual_TessellatedItem)
private:
Handle(StepVisual_HArray1OfTessellatedStructuredItem) myItems;
Handle(StepShape_ConnectedFaceSet) myTopologicalLink; //!< optional
Standard_Boolean myHasTopologicalLink; //!< flag "is TopologicalLink defined"
};
#endif // _StepVisual_TessellatedShell_HeaderFile_

View File

@@ -0,0 +1,130 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedSolid.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedSolid, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedSolid
//purpose :
//=======================================================================
StepVisual_TessellatedSolid::StepVisual_TessellatedSolid ()
{
myHasGeometricLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedSolid::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems,
const Standard_Boolean theHasGeometricLink,
const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink)
{
StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
myItems = theItems;
myHasGeometricLink = theHasGeometricLink;
if (myHasGeometricLink)
{
myGeometricLink = theGeometricLink;
}
else
{
myGeometricLink.Nullify();
}
}
//=======================================================================
//function : Items
//purpose :
//=======================================================================
Handle(StepVisual_HArray1OfTessellatedStructuredItem) StepVisual_TessellatedSolid::Items () const
{
return myItems;
}
//=======================================================================
//function : SetItems
//purpose :
//=======================================================================
void StepVisual_TessellatedSolid::SetItems(const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems)
{
myItems = theItems;
}
//=======================================================================
//function : NbItems
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedSolid::NbItems() const
{
if (myItems.IsNull())
{
return 0;
}
return myItems->Length();
}
//=======================================================================
//function : ItemsValue
//purpose :
//=======================================================================
Handle(StepVisual_TessellatedStructuredItem) StepVisual_TessellatedSolid::ItemsValue(const Standard_Integer theNum) const
{
return myItems->Value(theNum);
}
//=======================================================================
//function : GeometricLink
//purpose :
//=======================================================================
Handle(StepShape_ManifoldSolidBrep) StepVisual_TessellatedSolid::GeometricLink () const
{
return myGeometricLink;
}
//=======================================================================
//function : SetGeometricLink
//purpose :
//=======================================================================
void StepVisual_TessellatedSolid::SetGeometricLink(const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink)
{
myGeometricLink = theGeometricLink;
}
//=======================================================================
//function : HasGeometricLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedSolid::HasGeometricLink () const
{
return myHasGeometricLink;
}

View File

@@ -0,0 +1,75 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedSolid_HeaderFile_
#define _StepVisual_TessellatedSolid_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
#include <StepVisual_HArray1OfTessellatedStructuredItem.hxx>
#include <StepShape_ManifoldSolidBrep.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedSolid, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedSolid
class StepVisual_TessellatedSolid : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedSolid();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems,
const Standard_Boolean theHasGeometricLink,
const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink);
//! Returns field Items
Standard_EXPORT Handle(StepVisual_HArray1OfTessellatedStructuredItem) Items() const;
//! Sets field Items
Standard_EXPORT void SetItems (const Handle(StepVisual_HArray1OfTessellatedStructuredItem)& theItems);
//! Returns number of Items
Standard_EXPORT Standard_Integer NbItems() const;
//! Returns value of Items by its num
Standard_EXPORT Handle(StepVisual_TessellatedStructuredItem) ItemsValue(const Standard_Integer theNum) const;
//! Returns field GeometricLink
Standard_EXPORT Handle(StepShape_ManifoldSolidBrep) GeometricLink() const;
//! Sets field GeometricLink
Standard_EXPORT void SetGeometricLink (const Handle(StepShape_ManifoldSolidBrep)& theGeometricLink);
//! Returns True if optional field GeometricLink is defined
Standard_EXPORT Standard_Boolean HasGeometricLink() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedSolid, StepVisual_TessellatedItem)
private:
Handle(StepVisual_HArray1OfTessellatedStructuredItem) myItems;
Handle(StepShape_ManifoldSolidBrep) myGeometricLink; //!< optional
Standard_Boolean myHasGeometricLink; //!< flag "is GeometricLink defined"
};
#endif // _StepVisual_TessellatedSolid_HeaderFile_

View File

@@ -0,0 +1,28 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedStructuredItem.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedStructuredItem, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedStructuredItem
//purpose :
//=======================================================================
StepVisual_TessellatedStructuredItem::StepVisual_TessellatedStructuredItem ()
{
}

View File

@@ -0,0 +1,40 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedStructuredItem_HeaderFile_
#define _StepVisual_TessellatedStructuredItem_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedStructuredItem, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedStructuredItem
class StepVisual_TessellatedStructuredItem : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedStructuredItem();
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedStructuredItem, StepVisual_TessellatedItem)
};
#endif // _StepVisual_TessellatedStructuredItem_HeaderFile_

View File

@@ -0,0 +1,121 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedSurfaceSet.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedSurfaceSet, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedSurfaceSet
//purpose :
//=======================================================================
StepVisual_TessellatedSurfaceSet::StepVisual_TessellatedSurfaceSet ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedSurfaceSet::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Integer thePnmax,
const Handle(TColStd_HArray2OfReal)& theNormals)
{
StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
myCoordinates = theCoordinates;
myPnmax = thePnmax;
myNormals = theNormals;
}
//=======================================================================
//function : Coordinates
//purpose :
//=======================================================================
Handle(StepVisual_CoordinatesList) StepVisual_TessellatedSurfaceSet::Coordinates () const
{
return myCoordinates;
}
//=======================================================================
//function : SetCoordinates
//purpose :
//=======================================================================
void StepVisual_TessellatedSurfaceSet::SetCoordinates(const Handle(StepVisual_CoordinatesList)& theCoordinates)
{
myCoordinates = theCoordinates;
}
//=======================================================================
//function : Pnmax
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedSurfaceSet::Pnmax () const
{
return myPnmax;
}
//=======================================================================
//function : SetPnmax
//purpose :
//=======================================================================
void StepVisual_TessellatedSurfaceSet::SetPnmax(const Standard_Integer thePnmax)
{
myPnmax = thePnmax;
}
//=======================================================================
//function : Normals
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfReal) StepVisual_TessellatedSurfaceSet::Normals () const
{
return myNormals;
}
//=======================================================================
//function : SetNormals
//purpose :
//=======================================================================
void StepVisual_TessellatedSurfaceSet::SetNormals(const Handle(TColStd_HArray2OfReal)& theNormals)
{
myNormals = theNormals;
}
//=======================================================================
//function : NbNormals
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedSurfaceSet::NbNormals() const
{
if (myNormals.IsNull())
{
return 0;
}
return myNormals->ColLength();
}

View File

@@ -0,0 +1,75 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedSurfaceSet_HeaderFile_
#define _StepVisual_TessellatedSurfaceSet_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
#include <StepVisual_CoordinatesList.hxx>
#include <TColStd_HArray2OfReal.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedSurfaceSet, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedSurfaceSet
class StepVisual_TessellatedSurfaceSet : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedSurfaceSet();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Integer thePnmax,
const Handle(TColStd_HArray2OfReal)& theNormals);
//! Returns field Coordinates
Standard_EXPORT Handle(StepVisual_CoordinatesList) Coordinates() const;
//! Sets field Coordinates
Standard_EXPORT void SetCoordinates (const Handle(StepVisual_CoordinatesList)& theCoordinates);
//! Returns field Pnmax
Standard_EXPORT Standard_Integer Pnmax() const;
//! Sets field Pnmax
Standard_EXPORT void SetPnmax (const Standard_Integer thePnmax);
//! Returns field Normals
Standard_EXPORT Handle(TColStd_HArray2OfReal) Normals() const;
//! Sets field Normals
Standard_EXPORT void SetNormals (const Handle(TColStd_HArray2OfReal)& theNormals);
//! Returns number of Normals
Standard_EXPORT Standard_Integer NbNormals() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedSurfaceSet, StepVisual_TessellatedItem)
private:
Handle(StepVisual_CoordinatesList) myCoordinates;
Standard_Integer myPnmax;
Handle(TColStd_HArray2OfReal) myNormals;
};
#endif // _StepVisual_TessellatedSurfaceSet_HeaderFile_

View File

@@ -0,0 +1,128 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedVertex.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedVertex, StepVisual_TessellatedStructuredItem)
//=======================================================================
//function : StepVisual_TessellatedVertex
//purpose :
//=======================================================================
StepVisual_TessellatedVertex::StepVisual_TessellatedVertex ()
{
myPointIndex = 0;
myHasTopologicalLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedVertex::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Boolean theHasTopologicalLink,
const Handle(StepShape_VertexPoint)& theTopologicalLink,
const Standard_Integer thePointIndex)
{
StepVisual_TessellatedStructuredItem::Init(theRepresentationItem_Name);
myCoordinates = theCoordinates;
myHasTopologicalLink = theHasTopologicalLink;
if (myHasTopologicalLink)
{
myTopologicalLink = theTopologicalLink;
}
else
{
myTopologicalLink.Nullify();
}
myPointIndex = thePointIndex;
}
//=======================================================================
//function : Coordinates
//purpose :
//=======================================================================
Handle(StepVisual_CoordinatesList) StepVisual_TessellatedVertex::Coordinates () const
{
return myCoordinates;
}
//=======================================================================
//function : SetCoordinates
//purpose :
//=======================================================================
void StepVisual_TessellatedVertex::SetCoordinates(const Handle(StepVisual_CoordinatesList)& theCoordinates)
{
myCoordinates = theCoordinates;
}
//=======================================================================
//function : TopologicalLink
//purpose :
//=======================================================================
Handle(StepShape_VertexPoint) StepVisual_TessellatedVertex::TopologicalLink () const
{
return myTopologicalLink;
}
//=======================================================================
//function : SetTopologicalLink
//purpose :
//=======================================================================
void StepVisual_TessellatedVertex::SetTopologicalLink(const Handle(StepShape_VertexPoint)& theTopologicalLink)
{
myTopologicalLink = theTopologicalLink;
}
//=======================================================================
//function : HasTopologicalLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedVertex::HasTopologicalLink () const
{
return myHasTopologicalLink;
}
//=======================================================================
//function : PointIndex
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedVertex::PointIndex () const
{
return myPointIndex;
}
//=======================================================================
//function : SetPointIndex
//purpose :
//=======================================================================
void StepVisual_TessellatedVertex::SetPointIndex(const Standard_Integer thePointIndex)
{
myPointIndex = thePointIndex;
}

View File

@@ -0,0 +1,77 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedVertex_HeaderFile_
#define _StepVisual_TessellatedVertex_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedStructuredItem.hxx>
#include <StepVisual_CoordinatesList.hxx>
#include <StepShape_VertexPoint.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedVertex, StepVisual_TessellatedStructuredItem)
//! Representation of STEP entity TessellatedVertex
class StepVisual_TessellatedVertex : public StepVisual_TessellatedStructuredItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedVertex();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theCoordinates,
const Standard_Boolean theHasTopologicalLink,
const Handle(StepShape_VertexPoint)& theTopologicalLink,
const Standard_Integer thePointIndex);
//! Returns field Coordinates
Standard_EXPORT Handle(StepVisual_CoordinatesList) Coordinates() const;
//! Sets field Coordinates
Standard_EXPORT void SetCoordinates (const Handle(StepVisual_CoordinatesList)& theCoordinates);
//! Returns field TopologicalLink
Standard_EXPORT Handle(StepShape_VertexPoint) TopologicalLink() const;
//! Sets field TopologicalLink
Standard_EXPORT void SetTopologicalLink (const Handle(StepShape_VertexPoint)& theTopologicalLink);
//! Returns True if optional field TopologicalLink is defined
Standard_EXPORT Standard_Boolean HasTopologicalLink() const;
//! Returns field PointIndex
Standard_EXPORT Standard_Integer PointIndex() const;
//! Sets field PointIndex
Standard_EXPORT void SetPointIndex (const Standard_Integer thePointIndex);
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedVertex, StepVisual_TessellatedStructuredItem)
private:
Handle(StepVisual_CoordinatesList) myCoordinates;
Handle(StepShape_VertexPoint) myTopologicalLink; //!< optional
Standard_Integer myPointIndex;
Standard_Boolean myHasTopologicalLink; //!< flag "is TopologicalLink defined"
};
#endif // _StepVisual_TessellatedVertex_HeaderFile_

View File

@@ -0,0 +1,130 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TessellatedWire.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TessellatedWire, StepVisual_TessellatedItem)
//=======================================================================
//function : StepVisual_TessellatedWire
//purpose :
//=======================================================================
StepVisual_TessellatedWire::StepVisual_TessellatedWire ()
{
myHasGeometricModelLink = Standard_False;
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TessellatedWire::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex)& theItems,
const Standard_Boolean theHasGeometricModelLink,
const StepVisual_PathOrCompositeCurve& theGeometricModelLink)
{
StepVisual_TessellatedItem::Init(theRepresentationItem_Name);
myItems = theItems;
myHasGeometricModelLink = theHasGeometricModelLink;
if (myHasGeometricModelLink)
{
myGeometricModelLink = theGeometricModelLink;
}
else
{
myGeometricModelLink = StepVisual_PathOrCompositeCurve();
}
}
//=======================================================================
//function : Items
//purpose :
//=======================================================================
Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex) StepVisual_TessellatedWire::Items () const
{
return myItems;
}
//=======================================================================
//function : SetItems
//purpose :
//=======================================================================
void StepVisual_TessellatedWire::SetItems(const Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex)& theItems)
{
myItems = theItems;
}
//=======================================================================
//function : NbItems
//purpose :
//=======================================================================
Standard_Integer StepVisual_TessellatedWire::NbItems() const
{
if (myItems.IsNull())
{
return 0;
}
return myItems->Length();
}
//=======================================================================
//function : ItemsValue
//purpose :
//=======================================================================
const StepVisual_TessellatedEdgeOrVertex& StepVisual_TessellatedWire::ItemsValue(const Standard_Integer theNum) const
{
return myItems->Value(theNum);
}
//=======================================================================
//function : GeometricModelLink
//purpose :
//=======================================================================
StepVisual_PathOrCompositeCurve StepVisual_TessellatedWire::GeometricModelLink () const
{
return myGeometricModelLink;
}
//=======================================================================
//function : SetGeometricModelLink
//purpose :
//=======================================================================
void StepVisual_TessellatedWire::SetGeometricModelLink(const StepVisual_PathOrCompositeCurve& theGeometricModelLink)
{
myGeometricModelLink = theGeometricModelLink;
}
//=======================================================================
//function : HasGeometricModelLink
//purpose :
//=======================================================================
Standard_Boolean StepVisual_TessellatedWire::HasGeometricModelLink () const
{
return myHasGeometricModelLink;
}

View File

@@ -0,0 +1,75 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TessellatedWire_HeaderFile_
#define _StepVisual_TessellatedWire_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedItem.hxx>
#include <StepVisual_HArray1OfTessellatedEdgeOrVertex.hxx>
#include <StepVisual_PathOrCompositeCurve.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TessellatedWire, StepVisual_TessellatedItem)
//! Representation of STEP entity TessellatedWire
class StepVisual_TessellatedWire : public StepVisual_TessellatedItem
{
public :
//! default constructor
Standard_EXPORT StepVisual_TessellatedWire();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex)& theItems,
const Standard_Boolean theHasGeometricModelLink,
const StepVisual_PathOrCompositeCurve& theGeometricModelLink);
//! Returns field Items
Standard_EXPORT Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex) Items() const;
//! Sets field Items
Standard_EXPORT void SetItems (const Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex)& theItems);
//! Returns number of Items
Standard_EXPORT Standard_Integer NbItems() const;
//! Returns value of Items by its num
Standard_EXPORT const StepVisual_TessellatedEdgeOrVertex& ItemsValue(const Standard_Integer theNum) const;
//! Returns field GeometricModelLink
Standard_EXPORT StepVisual_PathOrCompositeCurve GeometricModelLink() const;
//! Sets field GeometricModelLink
Standard_EXPORT void SetGeometricModelLink (const StepVisual_PathOrCompositeCurve& theGeometricModelLink);
//! Returns True if optional field GeometricModelLink is defined
Standard_EXPORT Standard_Boolean HasGeometricModelLink() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TessellatedWire, StepVisual_TessellatedItem)
private:
Handle(StepVisual_HArray1OfTessellatedEdgeOrVertex) myItems;
StepVisual_PathOrCompositeCurve myGeometricModelLink; //!< optional
Standard_Boolean myHasGeometricModelLink; //!< flag "is GeometricModelLink defined"
};
#endif // _StepVisual_TessellatedWire_HeaderFile_

View File

@@ -0,0 +1,134 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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 <StepVisual_TriangulatedFace.hxx>
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_TriangulatedFace, StepVisual_TessellatedFace)
//=======================================================================
//function : StepVisual_TriangulatedFace
//purpose :
//=======================================================================
StepVisual_TriangulatedFace::StepVisual_TriangulatedFace ()
{
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void StepVisual_TriangulatedFace::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangles)
{
StepVisual_TessellatedFace::Init(theRepresentationItem_Name,
theTessellatedFace_Coordinates,
theTessellatedFace_Pnmax,
theTessellatedFace_Normals,
theHasTessellatedFace_GeometricLink,
theTessellatedFace_GeometricLink);
myPnindex = thePnindex;
myTriangles = theTriangles;
}
//=======================================================================
//function : Pnindex
//purpose :
//=======================================================================
Handle(TColStd_HArray1OfInteger) StepVisual_TriangulatedFace::Pnindex () const
{
return myPnindex;
}
//=======================================================================
//function : SetPnindex
//purpose :
//=======================================================================
void StepVisual_TriangulatedFace::SetPnindex(const Handle(TColStd_HArray1OfInteger)& thePnindex)
{
myPnindex = thePnindex;
}
//=======================================================================
//function : NbPnindex
//purpose :
//=======================================================================
Standard_Integer StepVisual_TriangulatedFace::NbPnindex() const
{
if (myPnindex.IsNull())
{
return 0;
}
return myPnindex->Length();
}
//=======================================================================
//function : PnindexValue
//purpose :
//=======================================================================
Standard_Integer StepVisual_TriangulatedFace::PnindexValue(const Standard_Integer theNum) const
{
return myPnindex->Value(theNum);
}
//=======================================================================
//function : Triangles
//purpose :
//=======================================================================
Handle(TColStd_HArray2OfInteger) StepVisual_TriangulatedFace::Triangles () const
{
return myTriangles;
}
//=======================================================================
//function : NbTriangles
//purpose :
//=======================================================================
Standard_Integer StepVisual_TriangulatedFace::NbTriangles() const
{
if (myTriangles.IsNull())
{
return 0;
}
return myTriangles->ColLength();
}
//=======================================================================
//function : SetTriangles
//purpose :
//=======================================================================
void StepVisual_TriangulatedFace::SetTriangles(const Handle(TColStd_HArray2OfInteger)& theTriangles)
{
myTriangles = theTriangles;
}

View File

@@ -0,0 +1,78 @@
// Created on : Thu Mar 24 18:30:12 2022
// Created by: snn
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
// Copyright (c) Open CASCADE 2022
//
// 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_TriangulatedFace_HeaderFile_
#define _StepVisual_TriangulatedFace_HeaderFile_
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepVisual_TessellatedFace.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray2OfInteger.hxx>
DEFINE_STANDARD_HANDLE(StepVisual_TriangulatedFace, StepVisual_TessellatedFace)
//! Representation of STEP entity TriangulatedFace
class StepVisual_TriangulatedFace : public StepVisual_TessellatedFace
{
public :
//! default constructor
Standard_EXPORT StepVisual_TriangulatedFace();
//! Initialize all fields (own and inherited)
Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
const Standard_Integer theTessellatedFace_Pnmax,
const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
const Standard_Boolean theHasTessellatedFace_GeometricLink,
const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
const Handle(TColStd_HArray1OfInteger)& thePnindex,
const Handle(TColStd_HArray2OfInteger)& theTriangles);
//! Returns field Pnindex
Standard_EXPORT Handle(TColStd_HArray1OfInteger) Pnindex() const;
//! Sets field Pnindex
Standard_EXPORT void SetPnindex (const Handle(TColStd_HArray1OfInteger)& thePnindex);
//! Returns number of Pnindex
Standard_EXPORT Standard_Integer NbPnindex() const;
//! Returns value of Pnindex by its num
Standard_EXPORT Standard_Integer PnindexValue(const Standard_Integer theNum) const;
//! Returns field Triangles
Standard_EXPORT Handle(TColStd_HArray2OfInteger) Triangles() const;
//! Sets field Triangles
Standard_EXPORT void SetTriangles (const Handle(TColStd_HArray2OfInteger)& theTriangles);
//! Returns number of Triangles
Standard_EXPORT Standard_Integer NbTriangles() const;
DEFINE_STANDARD_RTTIEXT(StepVisual_TriangulatedFace, StepVisual_TessellatedFace)
private:
Handle(TColStd_HArray1OfInteger) myPnindex;
Handle(TColStd_HArray2OfInteger) myTriangles;
};
#endif // _StepVisual_TriangulatedFace_HeaderFile_