remove references to old OpenCascade API
@mroszko figured out that the "new" API exists in all supported OpenCascade versions (>=7.3 for KiCad 6), so just remove the old code.
This commit is contained in:
parent
12152d4331
commit
8f87638de5
|
@ -80,8 +80,6 @@
|
|||
#include <TDF_Tool.hxx>
|
||||
#include <TDataStd_Name.hxx>
|
||||
|
||||
#include <Standard_Version.hxx>
|
||||
|
||||
#include "plugins/3dapi/ifsg_all.h"
|
||||
|
||||
|
||||
|
@ -1118,11 +1116,6 @@ bool processFace( const TopoDS_Face& face, DATA& data, SGNODE* parent,
|
|||
else
|
||||
S3D::AddSGNodeRef( vshape.GetRawPtr(), ocolor );
|
||||
|
||||
#if OCC_VERSION_HEX < 0x070600
|
||||
const TColgp_Array1OfPnt& arrPolyNodes = triangulation->Nodes();
|
||||
const Poly_Array1OfTriangle& arrTriangles = triangulation->Triangles();
|
||||
#endif
|
||||
|
||||
std::vector< SGPOINT > vertices;
|
||||
std::vector< int > indices;
|
||||
std::vector< int > indices2;
|
||||
|
@ -1130,22 +1123,14 @@ bool processFace( const TopoDS_Face& face, DATA& data, SGNODE* parent,
|
|||
|
||||
for( int i = 1; i <= triangulation->NbNodes(); i++ )
|
||||
{
|
||||
#if OCC_VERSION_HEX < 0x070600
|
||||
gp_XYZ v( arrPolyNodes(i).Coord() );
|
||||
#else
|
||||
gp_XYZ v( triangulation->Node(i).Coord() );
|
||||
#endif
|
||||
vertices.emplace_back( v.X(), v.Y(), v.Z() );
|
||||
}
|
||||
|
||||
for( int i = 1; i <= triangulation->NbTriangles(); i++ )
|
||||
{
|
||||
int a, b, c;
|
||||
#if OCC_VERSION_HEX < 0x070600
|
||||
arrTriangles( i ).Get( a, b, c );
|
||||
#else
|
||||
triangulation->Triangle(i).Get(a, b, c);
|
||||
#endif
|
||||
a--;
|
||||
|
||||
if( reverse )
|
||||
|
|
Loading…
Reference in New Issue