// File generated by CPPExt (Transient)
//
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _Poly_PolygonOnTriangulation_HeaderFile
#define _Poly_PolygonOnTriangulation_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_Poly_PolygonOnTriangulation_HeaderFile
#include <Handle_Poly_PolygonOnTriangulation.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _TColStd_Array1OfInteger_HeaderFile
#include <TColStd_Array1OfInteger.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfReal_HeaderFile
#include <Handle_TColStd_HArray1OfReal.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TColStd_HArray1OfReal;
class Standard_NullObject;
class TColStd_Array1OfInteger;
class TColStd_Array1OfReal;


//! This class provides a polygon in 3D space, based on the triangulation <br>
//! of a surface. It may be the approximate representation of a <br>
//! curve on the surface, or more generally the shape. <br>
//! A PolygonOnTriangulation is defined by a table of <br>
//! nodes. Each node is an index in the table of nodes specific <br>
//! to a triangulation, and represents a point on the surface. If <br>
//! the polygon is closed, the index of the point of closure is <br>
//! repeated at the end of the table of nodes. <br>
//! If the polygon is an approximate representation of a curve <br>
//! on a surface, you can associate with each of its nodes the <br>
//! value of the parameter of the corresponding point on the <br>
//! curve.represents a 3d Polygon <br>
class Poly_PolygonOnTriangulation : public MMgt_TShared {

public:
 // Methods PUBLIC
 // 

//! Constructs a 3D polygon on the triangulation of a shape, <br>
//! defined by the table of nodes, <Nodes>. <br>
Standard_EXPORT Poly_PolygonOnTriangulation(const TColStd_Array1OfInteger& Nodes);


//! Constructs a 3D polygon on the triangulation of a shape, defined by: <br>
//!  -   the table of nodes, Nodes, and the table of parameters, <Parameters>. <br>
//! where: <br>
//! -   a node value is an index in the table of nodes specific <br>
//!   to an existing triangulation of a shape <br>
//! -   and a parameter value is the value of the parameter of <br>
//!   the corresponding point on the curve approximated by <br>
//!   the constructed polygon. <br>
//! Warning <br>
//! The tables Nodes and Parameters must be the same size. <br>
//! This property is not checked at construction time. <br>
Standard_EXPORT Poly_PolygonOnTriangulation(const TColStd_Array1OfInteger& Nodes,const TColStd_Array1OfReal& Parameters);

//! Returns the deflection of this polygon <br>
Standard_EXPORT   Standard_Real Deflection() const;

//! Sets the deflection of this polygon to D. <br>
//! See more on deflection in Poly_Polygones2D. <br>
Standard_EXPORT   void Deflection(const Standard_Real D) ;

//! Returns the number of nodes for this polygon. <br>
//! Note: If the polygon is closed, the point of closure is <br>
//! repeated at the end of its table of nodes. Thus, on a closed <br>
//! triangle, the function NbNodes returns 4. <br>
  Standard_Integer NbNodes() const;

//! Returns the table of nodes for this polygon. A node value <br>
//! is an index in the table of nodes specific to an existing <br>
//! triangulation of a shape. <br>
Standard_EXPORT  const TColStd_Array1OfInteger& Nodes() const;


//! Returns true if parameters are associated with the nodes in this polygon. <br>
Standard_EXPORT   Standard_Boolean HasParameters() const;

//! Returns the table of the parameters associated with each node in this polygon. <br>
//! Warning <br>
//! Use the function HasParameters to check if parameters <br>
//! are associated with the nodes in this polygon. <br>
//! <br>
Standard_EXPORT   Handle_TColStd_HArray1OfReal Parameters() const;
//Standard_EXPORT ~Poly_PolygonOnTriangulation();




 // Type management
 //
 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
 //Standard_EXPORT Standard_Boolean	       IsKind(const Handle(Standard_Type)&) const;

protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
Standard_Real myDeflection;
TColStd_Array1OfInteger myNodes;
Handle_TColStd_HArray1OfReal myParameters;


};


#include <Poly_PolygonOnTriangulation.lxx>



// other Inline functions and methods (like "C++: function call" methods)
//


#endif
