/////////////////////////////////////////////////////////////////////////////// // 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 _DAI_BREPPARAMS_H #define _DAI_BREPPARAMS_H #include "daiBuildOptions.h" #include "TD_PackPush.h" /** \details A class that implements work with brep geometry parameters. */ class DAI_EXPORT OdBrepParams { public: /** \details Enumeration for types of brep surface tolerance calculation methods. */ enum ToleranceType { /** Dynamic surface tolerance calculation method, based on extents values of solid body.*/ kDynamic, /** Static surface tolerance calculation method, sets fixed tolerance value.*/ kStatic, }; /** \details Creates a new set of brep parameters with the specified values. \param toleranceType [in] Type of surface tolerance calculation method. \param toleranceDynamic [in] Coefficient value for dynamic surface tolerance calculation method. \param toleranceStatic [in] Coefficient value for static surface tolerance calculation method. */ OdBrepParams(OdBrepParams::ToleranceType toleranceType = kDynamic, double toleranceDynamic = 0.0001, double toleranceStatic = 0.01); /** \details Retrieves the current surface tolerance calculation method. \returns A value that represents the current surface tolerance calculation method. */ OdBrepParams::ToleranceType getToleranceType() const; /** \details Sets a new surface tolerance calculation method value for the parameters set. \param toleranceType [in] A new surface tolerance calculation method value to be set. */ void setToleranceType(OdBrepParams::ToleranceType toleranceType); /** \details Retrieves the current dynamic tolerance coefficient value. \returns A double value that represents the current dynamic tolerance coefficient. */ double getToleranceDynamic() const; /** \details Sets a new dynamic tolerance coefficient value. \param toleranceCoef [in] A new dynamic tolerance coefficient value. */ void setToleranceDynamic(double toleranceCoef); /** \details Retrieves the current static tolerance coefficient value. \returns A double value that represents the current static tolerance coefficient. */ double getToleranceStatic() const; /** \details Sets a new tolerance static coefficient value. \param toleranceCoef [in] A new tolerance static coefficient value. */ void setToleranceStatic(double toleranceCoef); //DOM-IGNORE-BEGIN private: OdBrepParams::ToleranceType m_toleranceType; double m_toleranceDynamic; double m_toleranceStatic; //DOM-IGNORE-END }; #include "TD_PackPop.h" #endif // !defined(ODA_ODDAIBREPPARAMS_H_INCLUDED_)