/usr/include/oce/Poly_Triangle.hxx is in liboce-foundation-dev 0.15-4.
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 | // 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_Triangle_HeaderFile
#define _Poly_Triangle_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineAlloc_HeaderFile
#include <Standard_DefineAlloc.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Standard_OutOfRange;
//! Describes a component triangle of a triangulation <br>
//! (Poly_Triangulation object). <br>
//! A Triangle is defined by a triplet of nodes. Each node is an <br>
//! index in the table of nodes specific to an existing <br>
//! triangulation of a shape, and represents a point on the surface. <br>
class Poly_Triangle {
public:
DEFINE_STANDARD_ALLOC
//! Constructs a triangle and sets all indices to zero. <br>
Standard_EXPORT Poly_Triangle();
//! Constructs a triangle and sets its three indices <br>
//! to N1, N2 and N3 respectively, where these node values <br>
//! are indices in the table of nodes specific to an existing <br>
//! triangulation of a shape. <br>
Standard_EXPORT Poly_Triangle(const Standard_Integer N1,const Standard_Integer N2,const Standard_Integer N3);
//! Sets the value of the three nodes of this triangle to N1, N2 and N3 respectively. <br>
Standard_EXPORT void Set(const Standard_Integer N1,const Standard_Integer N2,const Standard_Integer N3) ;
//! Sets the value of the Indexth node of this triangle to Node. <br>
//! Raises OutOfRange if Index is not in 1,2,3 <br>
void Set(const Standard_Integer Index,const Standard_Integer Node) ;
//! Returns the node indices of this triangle in N1, N2 and N3. <br>
Standard_EXPORT void Get(Standard_Integer& N1,Standard_Integer& N2,Standard_Integer& N3) const;
//! Get the node of given Index. <br>
//! Raises OutOfRange from Standard if Index is not in 1,2,3 <br>
Standard_Integer Value(const Standard_Integer Index) const;
Standard_Integer operator()(const Standard_Integer Index) const
{
return Value(Index);
}
//! Get the node of given Index. <br>
//! Raises OutOfRange if Index is not in 1,2,3 <br>
Standard_Integer& ChangeValue(const Standard_Integer Index) ;
Standard_Integer& operator()(const Standard_Integer Index)
{
return ChangeValue(Index);
}
protected:
private:
Standard_Integer myNodes[3];
};
#include <Poly_Triangle.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|