Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | struct LoaderState { | ||||
| float minBBox[3]; | float minBBox[3]; | ||||
| float maxBBox[3]; | float maxBBox[3]; | ||||
| }; | }; | ||||
| class BlenderFileLoader | class BlenderFileLoader | ||||
| { | { | ||||
| public: | public: | ||||
| /*! Builds a MaxFileLoader */ | /*! Builds a MaxFileLoader */ | ||||
| BlenderFileLoader(Render *re, SceneLayer *scene_layer); | BlenderFileLoader(Render *re, ViewLayer *view_layer); | ||||
| virtual ~BlenderFileLoader(); | virtual ~BlenderFileLoader(); | ||||
| /*! Loads the 3D scene and returns a pointer to the scene root node */ | /*! Loads the 3D scene and returns a pointer to the scene root node */ | ||||
| NodeGroup * Load(); | NodeGroup * Load(); | ||||
| /*! Gets the number of read faces */ | /*! Gets the number of read faces */ | ||||
| inline unsigned int numFacesRead() {return _numFacesRead;} | inline unsigned int numFacesRead() {return _numFacesRead;} | ||||
| Show All 19 Lines | |||||
| protected: | protected: | ||||
| struct detri_t { | struct detri_t { | ||||
| unsigned viA, viB, viP; // 0 <= viA, viB, viP < viSize | unsigned viA, viB, viP; // 0 <= viA, viB, viP < viSize | ||||
| Vec3r v; | Vec3r v; | ||||
| unsigned n; | unsigned n; | ||||
| }; | }; | ||||
| Render *_re; | Render *_re; | ||||
| SceneLayer *_scene_layer; | ViewLayer *_view_layer; | ||||
| NodeGroup *_Scene; | NodeGroup *_Scene; | ||||
| unsigned _numFacesRead; | unsigned _numFacesRead; | ||||
| #if 0 | #if 0 | ||||
| real _minEdgeSize; | real _minEdgeSize; | ||||
| #endif | #endif | ||||
| bool _smooth; /* if true, face smoothness is taken into account */ | bool _smooth; /* if true, face smoothness is taken into account */ | ||||
| float _viewplane_left; | float _viewplane_left; | ||||
| float _viewplane_right; | float _viewplane_right; | ||||
| Show All 15 Lines | |||||