Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
#ifndef BLENDER_FILE_LOADER_H
# define BLENDER_FILE_LOADER_H
# include <string.h>
# include <float.h>
# include "../system/FreestyleConfig.h"
# include "../scene_graph/NodeGroup.h"
# include "../scene_graph/NodeTransform.h"
# include "../scene_graph/NodeShape.h"
# include "../scene_graph/IndexedFaceSet.h"
# include "../geometry/BBox.h"
# include "../geometry/Geom.h"
# include "../geometry/GeomCleaner.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "DNA_material_types.h"
#include "DNA_scene_types.h"
#include "render_types.h"
#include "renderdatabase.h"
#include "BKE_mesh.h"
#include "BKE_scene.h"
#include "BLI_math.h"
}
class NodeGroup;
class LIB_SCENE_GRAPH_EXPORT BlenderFileLoader
{
public:
/*! Builds a MaxFileLoader */
BlenderFileLoader(Render *re, SceneRenderLayer* srl);
virtual ~BlenderFileLoader();
/*! Loads the 3D scene and returns a pointer to the scene root node */
NodeGroup * Load();
/*! Gets the number of read faces */
inline unsigned int numFacesRead() {return _numFacesRead;}
/*! Gets the smallest edge size read */
inline real minEdgeSize() {return _minEdgeSize;}
protected:
void insertShapeNode(ObjectRen *obr, int id);
Render* _re;
SceneRenderLayer* _srl;
NodeGroup* _Scene;
unsigned _numFacesRead;
real _minEdgeSize;
};
#endif // BLENDER_FILE_LOADER_H