Merge pull request #1556 from assimp/issue_1292
closes https://github.com/assimp/assimp/issues/1292: export class sub…pull/1559/head
commit
9a13bf236f
|
@ -40,10 +40,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @file Defines a helper class to evaluate subdivision surfaces.*/
|
/** @file Defines a helper class to evaluate subdivision surfaces.*/
|
||||||
|
#pragma once
|
||||||
#ifndef AI_SUBDISIVION_H_INC
|
#ifndef AI_SUBDISIVION_H_INC
|
||||||
#define AI_SUBDISIVION_H_INC
|
#define AI_SUBDISIVION_H_INC
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <assimp/types.h>
|
||||||
|
|
||||||
struct aiMesh;
|
struct aiMesh;
|
||||||
|
|
||||||
namespace Assimp {
|
namespace Assimp {
|
||||||
|
@ -52,8 +55,7 @@ namespace Assimp {
|
||||||
/** Helper class to evaluate subdivision surfaces. Different algorithms
|
/** Helper class to evaluate subdivision surfaces. Different algorithms
|
||||||
* are provided for choice. */
|
* are provided for choice. */
|
||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
class Subdivider
|
class ASSIMP_API Subdivider {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Enumerates all supported subvidision algorithms */
|
/** Enumerates all supported subvidision algorithms */
|
||||||
|
@ -61,12 +63,7 @@ public:
|
||||||
CATMULL_CLARKE = 0x1
|
CATMULL_CLARKE = 0x1
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
virtual ~Subdivider();
|
||||||
|
|
||||||
virtual ~Subdivider() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
/** Create a subdivider of a specific type
|
/** Create a subdivider of a specific type
|
||||||
|
@ -119,9 +116,13 @@ public:
|
||||||
unsigned int num,
|
unsigned int num,
|
||||||
bool discard_input = false) = 0;
|
bool discard_input = false) = 0;
|
||||||
|
|
||||||
private:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline
|
||||||
|
Subdivider::~Subdivider() {
|
||||||
|
// empty
|
||||||
|
}
|
||||||
|
|
||||||
} // end namespace Assimp
|
} // end namespace Assimp
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue