/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IGeometryConvertion
 *   Provides standard convertion routines:
 *   - converts polygonal meshes to tri- quad- meshes
 *   - converts points list into spline
 *--------------------------------------------------------------------------
 * @created: Friday, June 18, 2004 16:01:19
 */

#if !defined(IGeometryConvertion_h_included)
#define IGeometryConvertion_h_included
//forward declaration of this class might require
namespace shared
{ class IGeometryConvertion; };
#include <zmodeler.h>


namespace shared
{
  
  class IGeometryConvertion : public ZUnknown
  {
  public:
    /* converts supplied polybuffer to quad-buffer.
     * bOptimal - forces using optimal quads (more square and rect shapes)
     * bool bID - forces to respect triangle IDs when merging them to quads
     * bool bMaterials - forces to respect Materials when merging them to quads
     * bool bUseTri - allows using triangles where no quads detected. if false, degradate quad is created */
    virtual ZRESULT convertToQuadMesh(ZPolyBuf& srcBuf, ZVertexBuf& vBuf, ZPolyBuf& destBuf, bool bOptimal, bool bID, bool bMaterials, bool bUseTri)=0;
    /* converts supplied polybuffer to triangles-buffer. */
    virtual ZRESULT convertToTriMesh(ZPolyBuf& srcBuf, ZVertexBuf& vBuf, ZPolyBuf& destBuf)=0;
  
  };//class IGeometryConvertion
};//shared

#endif
