/usr/include/opencascade/Poly.hxx is in libopencascade-foundation-dev 6.5.0.dfsg-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Poly_HeaderFile
#define _Poly_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Handle_Poly_Triangulation_HeaderFile
#include <Handle_Poly_Triangulation.hxx>
#endif
#ifndef _Poly_ListOfTriangulation_HeaderFile
#include <Poly_ListOfTriangulation.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Poly_Polygon3D_HeaderFile
#include <Handle_Poly_Polygon3D.hxx>
#endif
#ifndef _Handle_Poly_Polygon2D_HeaderFile
#include <Handle_Poly_Polygon2D.hxx>
#endif
#ifndef _Standard_IStream_HeaderFile
#include <Standard_IStream.hxx>
#endif
class Poly_Triangulation;
class Poly_Polygon3D;
class Poly_Polygon2D;
class Poly_Triangle;
class Poly_Array1OfTriangle;
class Poly_HArray1OfTriangle;
class Poly_Triangulation;
class Poly_Polygon3D;
class Poly_Polygon2D;
class Poly_PolygonOnTriangulation;
class Poly_Connect;
//! This package provides classes and services to <br>
//! handle : <br>
//! <br>
//! * 3D triangular polyhedrons. <br>
//! <br>
//! * 3D polygons. <br>
//! <br>
//! * 2D polygon. <br>
//! <br>
//! * Tools to dump, save and restore those objects. <br>
class Poly {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
//! Join several triangulations to one new triangulation object. <br>
//! The new triangulation is just a mechanical sum of input <br>
//! triangulations, without node sharing. UV coordinates are <br>
//! dropped in the result. <br>
Standard_EXPORT static Handle_Poly_Triangulation Catenate(const Poly_ListOfTriangulation& lstTri) ;
//! Writes the content of the triangulation <T> on the <br>
//! stream <OS>. If <Compact> is true this is a "save" <br>
//! format intended to be read back with the Read <br>
//! method. If compact is False it is a "Dump" format <br>
//! intended to be informative. <br>
Standard_EXPORT static void Write(const Handle(Poly_Triangulation)& T,Standard_OStream& OS,const Standard_Boolean Compact = Standard_True) ;
//! Writes the content of the 3D polygon <P> on the <br>
//! stream <OS>. If <Compact> is true this is a "save" <br>
//! format intended to be read back with the Read <br>
//! method. If compact is False it is a "Dump" format <br>
//! intended to be informative. <br>
Standard_EXPORT static void Write(const Handle(Poly_Polygon3D)& P,Standard_OStream& OS,const Standard_Boolean Compact = Standard_True) ;
//! Writes the content of the 2D polygon <P> on the <br>
//! stream <OS>. If <Compact> is true this is a "save" <br>
//! format intended to be read back with the Read <br>
//! method. If compact is False it is a "Dump" format <br>
//! intended to be informative. <br>
Standard_EXPORT static void Write(const Handle(Poly_Polygon2D)& P,Standard_OStream& OS,const Standard_Boolean Compact = Standard_True) ;
//! Dumps the triangulation. This is a call to the <br>
//! previous method with Comapct set to False. <br>
Standard_EXPORT static void Dump(const Handle(Poly_Triangulation)& T,Standard_OStream& OS) ;
//! Dumps the 3D polygon. This is a call to the <br>
//! previous method with Comapct set to False. <br>
Standard_EXPORT static void Dump(const Handle(Poly_Polygon3D)& P,Standard_OStream& OS) ;
//! Dumps the 2D polygon. This is a call to the <br>
//! previous method with Comapct set to False. <br>
Standard_EXPORT static void Dump(const Handle(Poly_Polygon2D)& P,Standard_OStream& OS) ;
//! Reads a triangulation from the stream <IS>. <br>
Standard_EXPORT static Handle_Poly_Triangulation ReadTriangulation(Standard_IStream& IS) ;
//! Reads a 3d polygon from the stream <IS>. <br>
Standard_EXPORT static Handle_Poly_Polygon3D ReadPolygon3D(Standard_IStream& IS) ;
//! Reads a 2D polygon from the stream <IS>. <br>
Standard_EXPORT static Handle_Poly_Polygon2D ReadPolygon2D(Standard_IStream& IS) ;
//! Compute node normals for face triangulation <br>
//! as mean normal of surrounding triangles <br>
Standard_EXPORT static void ComputeNormals(const Handle(Poly_Triangulation)& Tri) ;
protected:
private:
friend class Poly_Triangle;
friend class Poly_Array1OfTriangle;
friend class Poly_HArray1OfTriangle;
friend class Poly_Triangulation;
friend class Poly_Polygon3D;
friend class Poly_Polygon2D;
friend class Poly_PolygonOnTriangulation;
friend class Poly_Connect;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|