first complex.h files made self-sufficient

This commit is contained in:
alemuntoni 2021-03-24 14:53:00 +01:00
parent 2e635647c4
commit 0b99eaa7b2
8 changed files with 30 additions and 9 deletions

View File

@ -23,9 +23,14 @@
#ifndef __VCGLIB_TRIALLOCATOR
#define __VCGLIB_TRIALLOCATOR
#ifndef __VCG_MESH
#error "This file should not be included alone. It is automatically included by complex.h"
#endif
#include <vector>
#include <set>
#include "used_types.h"
//#ifndef __VCG_MESH
//#error "This file should not be included alone. It is automatically included by complex.h"
//#endif
namespace vcg {
namespace tri {

View File

@ -20,12 +20,17 @@
* for more details. *
* *
****************************************************************************/
#ifndef __VCG_MESH
#error "This file should not be included alone. It is automatically included by complex.h"
#endif
//#ifndef __VCG_MESH
//#error "This file should not be included alone. It is automatically included by complex.h"
//#endif
#ifndef __VCG_COMPLEX_BASE
#define __VCG_COMPLEX_BASE
#include <typeindex>
#include <vcg/container/simple_temporary_data.h>
#include "used_types.h"
namespace vcg {
class PointerToAttribute

View File

@ -23,6 +23,9 @@
#ifndef __VCG_EXCEPTION_H
#define __VCG_EXCEPTION_H
#include <stdexcept>
#include <iostream>
namespace vcg
{
class MissingComponentException : public std::runtime_error

View File

@ -24,10 +24,11 @@
#ifndef __VCGLIB_SIMPLE__
#define __VCGLIB_SIMPLE__
#include <string.h>
#include <string>
#include <cstring>
#include <limits>
#include <vector>
#include <assert.h>
#include <cassert>
namespace vcg
{

View File

@ -24,6 +24,8 @@
#ifndef __VCG_EDGE_POS
#define __VCG_EDGE_POS
#include <cassert>
namespace vcg {
namespace edge {

View File

@ -24,6 +24,9 @@
#ifndef _VCG_EDGE_TOPOLOGY
#define _VCG_EDGE_TOPOLOGY
#include <vector>
#include <vcg/complex/allocate.h>
namespace vcg {
namespace edge {
/** \addtogroup edge */

View File

@ -29,6 +29,8 @@
#ifndef __VCG_FACE_POS
#define __VCG_FACE_POS
#include <cassert>
namespace vcg {
namespace face {

View File

@ -24,7 +24,7 @@
#ifndef _VCG_FACE_TOPOLOGY
#define _VCG_FACE_TOPOLOGY
#include <vcg/simplex/face/pos.h>
#include <vcg/complex/allocate.h>
namespace vcg {
namespace face {