Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:12

0001 // Copyright (c) 2018 OPEN CASCADE SAS
0002 // This file is part of Open CASCADE Technology software library.
0003 //
0004 // This library is free software; you can redistribute it and/or modify it under
0005 // the terms of the GNU Lesser General Public License version 2.1 as published
0006 // by the Free Software Foundation, with special exception defined in the file
0007 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0008 // distribution for complete text of the license and disclaimer of any warranty.
0009 //
0010 // Alternatively, this file may be used under the terms of Open CASCADE
0011 // commercial license or contractual agreement.
0012 
0013 #ifndef _BRepGProp_MeshCinert_HeaderFile
0014 #define _BRepGProp_MeshCinert_HeaderFile
0015 
0016 #include <Standard.hxx>
0017 #include <Standard_DefineAlloc.hxx>
0018 #include <Standard_Handle.hxx>
0019 #include <TColgp_Array1OfPnt.hxx>
0020 #include <TColgp_HArray1OfPnt.hxx>
0021 #include <GProp_GProps.hxx>
0022 class gp_Pnt;
0023 class TopoDS_Edge;
0024 
0025 
0026 
0027 //! Computes the  global properties of 
0028 //! of polylines  represented by set of points.
0029 //! This class is used for computation of global
0030 //! properties of edge, which has no exact geometry
0031 //! (3d or 2d curve), but has any of allowed
0032 //! polygons.
0033 //! 
0034 class BRepGProp_MeshCinert  : public GProp_GProps
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT BRepGProp_MeshCinert();
0042     
0043   Standard_EXPORT void SetLocation (const gp_Pnt& CLocation);
0044   
0045   //! Computes the  global properties of 
0046   //! of polylines  represented by set of points.
0047   Standard_EXPORT void Perform(const TColgp_Array1OfPnt& theNodes);
0048 
0049   //! Prepare set of 3d points on base of any available edge polygons:
0050   //! 3D polygon, polygon on triangulation, 2d polygon on surface
0051   //! If edge has no polygons, array thePolyg is left unchanged
0052   Standard_EXPORT static void PreparePolygon(const TopoDS_Edge& theE, Handle(TColgp_HArray1OfPnt)& thePolyg);
0053 
0054 protected:
0055 
0056 
0057 
0058 
0059 
0060 private:
0061 
0062 
0063 
0064 
0065 };
0066 
0067 #endif // _BRepGProp_MeshCinert_HeaderFile