}
// acknowledge that the scene might come out incomplete
- // by Assimps definition of `complete`: blender scenes
+ // by Assimp's definition of `complete`: blender scenes
// can consist of thousands of cameras or lights with
// not a single mesh between them.
if (!out->mNumMeshes) {
ConversionData& conv_data, TempArray<std::vector,aiMesh>& temp
)
{
- // TODO: Resolve various problems with BMesh triangluation before re-enabling.
+ // TODO: Resolve various problems with BMesh triangulation before re-enabling.
// See issues #400, #373, #318 #315 and #132.
#if defined(TODO_FIX_BMESH_CONVERSION)
BlenderBMeshConverter BMeshConverter( mesh );
//out->mNumVertices = 0
out->mFaces = new aiFace[it.second]();
- // all submeshes created from this mesh are named equally. this allows
+ // all sub-meshes created from this mesh are named equally. this allows
// curious users to recover the original adjacency.
out->mName = aiString(mesh->id.name+2);
// skip over the name prefix 'ME'
return node.dismiss();
}
-
-#endif
+#endif // ASSIMP_BUILD_NO_BLEND_IMPORTER
// * C++ style comments only
//
// * Structures may include the primitive types char, int, short,
-// float, double. Signedness specifiers are not allowed on
+// float, double. Signed specifiers are not allowed on
// integers. Enum types are allowed, but they must have been
// defined in this header.
//
// provided they are neither pointers nor arrays.
//
// * One of WARN, FAIL can be appended to the declaration (
-// prior to the semiolon to specifiy the error handling policy if
+// prior to the semicolon to specify the error handling policy if
// this field is missing in the input DNA). If none of those
-// is specified the default policy is to subtitute a default
+// is specified the default policy is to substitute a default
// value for the field.
//
#define AI_BLEND_MESH_MAX_VERTS 2000000000L
+static const size_t MaxNameLen = 1024;
+
// -------------------------------------------------------------------------------
struct ID : ElemBase {
-
- char name[1024] WARN;
+ char name[ MaxNameLen ] WARN;
short flag;
};
// -------------------------------------------------------------------------------
struct ListBase : ElemBase {
-
std::shared_ptr<ElemBase> first;
std::shared_ptr<ElemBase> last;
};
// -------------------------------------------------------------------------------
struct GroupObject : ElemBase {
-
std::shared_ptr<GroupObject> prev,next FAIL;
std::shared_ptr<Object> ob;
};
// -------------------------------------------------------------------------------
struct World : ElemBase {
ID id FAIL;
-
};
// -------------------------------------------------------------------------------
// -------------------------------------------------------------------------------
struct MTFace : ElemBase {
-
float uv[4][2] FAIL;
char flag;
short mode;
// -------------------------------------------------------------------------------
struct MDeformVert : ElemBase {
-
vector<MDeformWeight> dw WARN;
int totweight;
};
float darkness;
float refrac;
-
float amb;
float ang;
float spectra;