Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-14 08:39:57

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 //! Computes the  global properties of
0026 //! of polylines  represented by set of points.
0027 //! This class is used for computation of global
0028 //! properties of edge, which has no exact geometry
0029 //! (3d or 2d curve), but has any of allowed
0030 //! polygons.
0031 //!
0032 class BRepGProp_MeshCinert : public GProp_GProps
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   Standard_EXPORT BRepGProp_MeshCinert();
0038 
0039   Standard_EXPORT void SetLocation(const gp_Pnt& CLocation);
0040 
0041   //! Computes the  global properties of
0042   //! of polylines  represented by set of points.
0043   Standard_EXPORT void Perform(const TColgp_Array1OfPnt& theNodes);
0044 
0045   //! Prepare set of 3d points on base of any available edge polygons:
0046   //! 3D polygon, polygon on triangulation, 2d polygon on surface
0047   //! If edge has no polygons, array thePolyg is left unchanged
0048   Standard_EXPORT static void PreparePolygon(const TopoDS_Edge&           theE,
0049                                              Handle(TColgp_HArray1OfPnt)& thePolyg);
0050 
0051 protected:
0052 private:
0053 };
0054 
0055 #endif // _BRepGProp_MeshCinert_HeaderFile