| #pragma once |
| |
| #ifndef MESHBUILDER_H |
| #define MESHBUILDER_H |
| |
| |
| #include "trasterimage.h" |
| #include "tmeshimage.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TNZEXT_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| |
| |
| |
| |
| struct MeshBuilderOptions { |
| int m_margin; |
| double m_targetEdgeLength; |
| int m_targetMaxVerticesCount; |
| |
| TPixel64 m_transparentColor; |
| |
| |
| |
| |
| }; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| DVAPI TMeshImageP buildMesh(const TRasterP &ras, |
| const MeshBuilderOptions &options); |
| |
| #endif |