|
|
|||
File indexing completed on 2026-07-30 09:14:04
0001 // Created on: 2016-04-07 0002 // Copyright (c) 2016 OPEN CASCADE SAS 0003 // Created by: Oleg AGASHIN 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef _IMeshTools_MeshBuilder_HeaderFile 0017 #define _IMeshTools_MeshBuilder_HeaderFile 0018 0019 #include <IMeshTools_Context.hxx> 0020 #include <Standard_Type.hxx> 0021 #include <Message_ProgressRange.hxx> 0022 0023 //! Builds mesh for each face of shape without triangulation. 0024 //! In case if some faces of shape have already been triangulated 0025 //! checks deflection of existing polygonal model and re-uses it 0026 //! if deflection satisfies the specified parameter. Otherwise 0027 //! nullifies existing triangulation and build triangulation anew. 0028 //! 0029 //! The following statuses are used: 0030 //! Message_Done1 - algorithm has finished without errors. 0031 //! Message_Fail1 - invalid context. 0032 //! Message_Fail2 - algorithm has faced unexpected error. 0033 //! Message_Fail3 - fail to discretize edges. 0034 //! Message_Fail4 - can't heal discrete model. 0035 //! Message_Fail5 - fail to pre-process model. 0036 //! Message_Fail6 - fail to discretize faces. 0037 //! Message_Fail7 - fail to post-process model. 0038 //! Message_Warn1 - shape contains no objects to mesh. 0039 class IMeshTools_MeshBuilder : public Message_Algorithm 0040 { 0041 public: 0042 //! Constructor. 0043 Standard_EXPORT IMeshTools_MeshBuilder(); 0044 0045 //! Constructor. 0046 Standard_EXPORT IMeshTools_MeshBuilder(const Handle(IMeshTools_Context)& theContext); 0047 0048 //! Destructor. 0049 Standard_EXPORT virtual ~IMeshTools_MeshBuilder(); 0050 0051 //! Sets context for algorithm. 0052 void SetContext(const Handle(IMeshTools_Context)& theContext) { myContext = theContext; } 0053 0054 //! Gets context of algorithm. 0055 const Handle(IMeshTools_Context)& GetContext() const { return myContext; } 0056 0057 //! Performs meshing to the shape using current context. 0058 Standard_EXPORT virtual void Perform(const Message_ProgressRange& theRange); 0059 0060 DEFINE_STANDARD_RTTIEXT(IMeshTools_MeshBuilder, Message_Algorithm) 0061 0062 private: 0063 Handle(IMeshTools_Context) myContext; 0064 }; 0065 0066 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|