/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef __TNW_TRINANGLE_INDEXES_H__ #define __TNW_TRINANGLE_INDEXES_H__ #include "NwObject.h" #include "NwExport.h" class OdNwVerticesData; typedef OdSmartPtr OdNwVerticesDataPtr; /** \details This structure represents indices of triangle's points in array of vertices, normals etc. */ struct NWDBEXPORT OdNwTriangleIndexes { /** Index of the first point. */ OdUInt16 pointIndex1; /** Index of the second point. */ OdUInt16 pointIndex2; /** Index of the third point. */ OdUInt16 pointIndex3; /** \details Comparison operator. \param obj [in] Structure instance to compare with this structure instance. \returns The true value if this structure is equal to the compared structure, or false otherwise. */ bool operator == (const OdNwTriangleIndexes& obj) const; /** \details Constructor with parameters. \param index1 [in] An index of the first triange's point. \param index2 [in] An index of the second triange's point. \param index3 [in] An index of the third triange's point. */ OdNwTriangleIndexes(OdUInt16 index1, OdUInt16 index2, OdUInt16 index3) : pointIndex1(index1) , pointIndex2(index2) , pointIndex3(index3) {} }; /** \details This template class is a specialization of the OdArray class for OdNwTriangleIndexes objects. */ typedef OdArray > OdNwTriangleIndexesArray; /** \details This class represents a pair of OdNwVerticesDataPtr and OdNwTriangleIndexesArray objects. */ typedef std::pair OdNwTriangleData; #endif //__TNW_TRINANGLE_INDEXES_H__