Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepBuilderAPI_MakeShapeOnMesh.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 2022-06-30
0002 // Created by: Alexander MALYSHEV
0003 // Copyright (c) 2022-2022 OPEN CASCADE SAS
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 _BRepBuilderAPI_MakeShapeOnMesh_HeaderFile
0017 #define _BRepBuilderAPI_MakeShapeOnMesh_HeaderFile
0018 
0019 #include <BRepBuilderAPI_MakeShape.hxx>
0020 #include <Poly_Triangulation.hxx>
0021 
0022 //! Builds shape on per-facet basis on the input mesh. Resulting shape has shared
0023 //! edges by construction, but no maximization (unify same domain) is applied.
0024 //! No generation history is provided.
0025 class BRepBuilderAPI_MakeShapeOnMesh : public BRepBuilderAPI_MakeShape
0026 {
0027 public:
0028   DEFINE_STANDARD_ALLOC
0029 
0030   //! Ctor. Sets mesh to process.
0031   //! @param[in] theMesh  - Mesh to construct shape for.
0032   BRepBuilderAPI_MakeShapeOnMesh(const occ::handle<Poly_Triangulation>& theMesh)
0033       : myMesh(theMesh)
0034   {
0035   }
0036 
0037   //! Builds shape on mesh.
0038   Standard_EXPORT void Build(
0039     const Message_ProgressRange& theRange = Message_ProgressRange()) override;
0040 
0041 private:
0042   occ::handle<Poly_Triangulation> myMesh;
0043 };
0044 
0045 #endif // _BRepBuilderAPI_MakeShapeOnMesh_HeaderFile