facebookincubator / FBX2glTF
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 63 files with 5,905 lines of code.
    • 1 very long files (1,021 lines of code)
    • 2 long files (1,301 lines of code)
    • 2 medium size files (780 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (793 lines of code)
    • 52 very small files (2,010 lines of code)
17% | 22% | 13% | 13% | 34%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp25% | 32% | 8% | 12% | 20%
hpp0% | 0% | 28% | 17% | 53%
cmake0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/fbx75% | 0% | 0% | 0% | 24%
src/gltf0% | 53% | 0% | 36% | 9%
src/raw0% | 58% | 41% | 0% | 0%
src0% | 0% | 69% | 0% | 30%
src/fbx/materials0% | 0% | 0% | 44% | 55%
src/gltf/properties0% | 0% | 0% | 13% | 86%
src/utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
npm/fbx2gltf0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Fbx2Raw.cpp
in src/fbx
1021 18
Raw2Gltf.cpp
in src/gltf
675 1
RawModel.cpp
in src/raw
626 26
RawModel.hpp
in src/raw
453 16
327 1
186 3
Raw2Gltf.hpp
in src/gltf
145 7
GltfModel.hpp
in src/gltf
130 6
3dsMaxPhysicalMaterial.cpp
in src/fbx/materials
122 1
MaterialData.cpp
in src/gltf/properties
108 6
TraditionalMaterials.cpp
in src/fbx/materials
102 1
FbxMaterials.cpp
in src/fbx/materials
99 3
cmake
88 -
80 3
80 -
NodeData.cpp
in src/gltf/properties
80 6
77 9
76 -
File_Utils.cpp
in src/utils
70 3
index.js
in npm/fbx2gltf
66 1
65 1
PrimitiveData.cpp
in src/gltf/properties
64 4
GltfModel.cpp
in src/gltf
64 3
RoughnessMetallicMaterials.hpp
in src/fbx/materials
57 1
56 6
56 1
56 3
PrimitiveData.hpp
in src/gltf/properties
56 1
54 3
StingrayPBSMaterial.cpp
in src/fbx/materials
52 1
MaterialData.hpp
in src/gltf/properties
51 -
Image_Utils.cpp
in src/utils
49 3
File_Utils.hpp
in src/utils
47 8
FbxMaterials.hpp
in src/fbx/materials
41 -
LightData.cpp
in src/gltf/properties
37 1
AnimationData.cpp
in src/gltf/properties
35 4
TraditionalMaterials.hpp
in src/fbx/materials
30 -
AccessorData.cpp
in src/gltf/properties
29 1
NodeData.hpp
in src/gltf/properties
28 -
AccessorData.hpp
in src/gltf/properties
28 2
25 2
AnimationData.hpp
in src/gltf/properties
24 -
MeshData.cpp
in src/gltf/properties
24 1
LightData.hpp
in src/gltf/properties
23 -
BufferData.cpp
in src/gltf/properties
21 1
CameraData.cpp
in src/gltf/properties
19 1
String_Utils.hpp
in src/utils
19 2
SkinData.cpp
in src/gltf/properties
16 1
MeshData.hpp
in src/gltf/properties
15 1
BufferViewData.hpp
in src/gltf/properties
15 -
Files With Most Units (Top 45)
File# lines# units
RawModel.cpp
in src/raw
626 26
Fbx2Raw.cpp
in src/fbx
1021 18
RawModel.hpp
in src/raw
453 16
77 9
File_Utils.hpp
in src/utils
47 8
Raw2Gltf.hpp
in src/gltf
145 7
56 6
GltfModel.hpp
in src/gltf
130 6
NodeData.cpp
in src/gltf/properties
80 6
MaterialData.cpp
in src/gltf/properties
108 6
PrimitiveData.cpp
in src/gltf/properties
64 4
AnimationData.cpp
in src/gltf/properties
35 4
FbxMaterials.cpp
in src/fbx/materials
99 3
80 3
54 3
186 3
56 3
GltfModel.cpp
in src/gltf
64 3
Image_Utils.cpp
in src/utils
49 3
File_Utils.cpp
in src/utils
70 3
25 2
AccessorData.hpp
in src/gltf/properties
28 2
String_Utils.hpp
in src/utils
19 2
index.js
in npm/fbx2gltf
66 1
327 1
RoughnessMetallicMaterials.hpp
in src/fbx/materials
57 1
StingrayPBSMaterial.cpp
in src/fbx/materials
52 1
TraditionalMaterials.cpp
in src/fbx/materials
102 1
3dsMaxPhysicalMaterial.cpp
in src/fbx/materials
122 1
56 1
65 1
Raw2Gltf.cpp
in src/gltf
675 1
MeshData.hpp
in src/gltf/properties
15 1
BufferViewData.cpp
in src/gltf/properties
14 1
AccessorData.cpp
in src/gltf/properties
29 1
BufferData.cpp
in src/gltf/properties
21 1
SkinData.cpp
in src/gltf/properties
16 1
ImageData.cpp
in src/gltf/properties
13 1
CameraData.cpp
in src/gltf/properties
19 1
SamplerData.hpp
in src/gltf/properties
8 1
SceneData.cpp
in src/gltf/properties
8 1
PrimitiveData.hpp
in src/gltf/properties
56 1
TextureData.cpp
in src/gltf/properties
8 1
MeshData.cpp
in src/gltf/properties
24 1
LightData.cpp
in src/gltf/properties
37 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
76 - 1
327 1 1
186 3 1
Raw2Gltf.cpp
in src/gltf
675 1 1
Correlations

File Size vs. Commits (all time): 63 points

npm/fbx2gltf/index.js x: 2 commits (all time) y: 66 lines of code src/gltf/properties/MeshData.cpp x: 4 commits (all time) y: 24 lines of code src/gltf/properties/PrimitiveData.cpp x: 4 commits (all time) y: 64 lines of code src/gltf/properties/PrimitiveData.hpp x: 5 commits (all time) y: 56 lines of code src/FBX2glTF.h x: 13 commits (all time) y: 65 lines of code src/FBX2glTF.cpp x: 17 commits (all time) y: 327 lines of code src/fbx/Fbx2Raw.cpp x: 28 commits (all time) y: 1021 lines of code src/raw/RawModel.cpp x: 11 commits (all time) y: 626 lines of code src/raw/RawModel.hpp x: 13 commits (all time) y: 453 lines of code src/fbx/materials/FbxMaterials.cpp x: 5 commits (all time) y: 99 lines of code conanfile.py x: 8 commits (all time) y: 25 lines of code src/fbx/FbxSkinningAccess.cpp x: 5 commits (all time) y: 80 lines of code FindFBX.cmake x: 5 commits (all time) y: 88 lines of code src/fbx/Fbx2Raw.hpp x: 6 commits (all time) y: 8 lines of code src/fbx/FbxLayerElementAccess.hpp x: 3 commits (all time) y: 80 lines of code src/fbx/FbxSkinningAccess.hpp x: 4 commits (all time) y: 56 lines of code src/fbx/materials/3dsMaxPhysicalMaterial.cpp x: 7 commits (all time) y: 122 lines of code src/fbx/materials/FbxMaterials.hpp x: 5 commits (all time) y: 41 lines of code src/fbx/materials/RoughnessMetallicMaterials.hpp x: 6 commits (all time) y: 57 lines of code src/fbx/materials/StingrayPBSMaterial.cpp x: 5 commits (all time) y: 52 lines of code src/fbx/materials/TraditionalMaterials.cpp x: 4 commits (all time) y: 102 lines of code src/fbx/materials/TraditionalMaterials.hpp x: 4 commits (all time) y: 30 lines of code src/gltf/GltfModel.cpp x: 6 commits (all time) y: 64 lines of code src/gltf/GltfModel.hpp x: 8 commits (all time) y: 130 lines of code src/gltf/Raw2Gltf.cpp x: 23 commits (all time) y: 675 lines of code src/gltf/Raw2Gltf.hpp x: 6 commits (all time) y: 145 lines of code src/gltf/TextureBuilder.cpp x: 7 commits (all time) y: 186 lines of code src/gltf/properties/AccessorData.hpp x: 4 commits (all time) y: 28 lines of code src/gltf/properties/AnimationData.cpp x: 4 commits (all time) y: 35 lines of code src/gltf/properties/AnimationData.hpp x: 3 commits (all time) y: 24 lines of code src/gltf/properties/BufferData.hpp x: 3 commits (all time) y: 13 lines of code src/gltf/properties/CameraData.cpp x: 3 commits (all time) y: 19 lines of code src/gltf/properties/ImageData.hpp x: 3 commits (all time) y: 11 lines of code src/gltf/properties/LightData.cpp x: 4 commits (all time) y: 37 lines of code src/gltf/properties/MaterialData.cpp x: 7 commits (all time) y: 108 lines of code src/gltf/properties/NodeData.cpp x: 6 commits (all time) y: 80 lines of code src/gltf/properties/NodeData.hpp x: 5 commits (all time) y: 28 lines of code src/gltf/properties/SamplerData.hpp x: 3 commits (all time) y: 8 lines of code src/gltf/properties/SceneData.hpp x: 4 commits (all time) y: 8 lines of code src/gltf/properties/SkinData.hpp x: 4 commits (all time) y: 12 lines of code src/utils/File_Utils.cpp x: 11 commits (all time) y: 70 lines of code src/utils/File_Utils.hpp x: 5 commits (all time) y: 47 lines of code src/utils/Image_Utils.cpp x: 4 commits (all time) y: 49 lines of code src/utils/String_Utils.hpp x: 5 commits (all time) y: 19 lines of code azure-pipelines.yml x: 1 commits (all time) y: 76 lines of code
1021.0
lines of code
  min: 8.0
  average: 93.73
  25th percentile: 16.0
  median: 49.0
  75th percentile: 80.0
  max: 1021.0
0 28.0
commits (all time)
min: 1.0 | average: 5.7 | 25th percentile: 3.0 | median: 4.0 | 75th percentile: 6.0 | max: 28.0

File Size vs. Contributors (all time): 63 points

npm/fbx2gltf/index.js x: 2 contributors (all time) y: 66 lines of code src/gltf/properties/MeshData.cpp x: 3 contributors (all time) y: 24 lines of code src/gltf/properties/PrimitiveData.cpp x: 3 contributors (all time) y: 64 lines of code src/gltf/properties/PrimitiveData.hpp x: 3 contributors (all time) y: 56 lines of code src/FBX2glTF.h x: 4 contributors (all time) y: 65 lines of code src/FBX2glTF.cpp x: 7 contributors (all time) y: 327 lines of code src/fbx/Fbx2Raw.cpp x: 9 contributors (all time) y: 1021 lines of code src/raw/RawModel.cpp x: 3 contributors (all time) y: 626 lines of code src/raw/RawModel.hpp x: 5 contributors (all time) y: 453 lines of code src/fbx/materials/FbxMaterials.cpp x: 3 contributors (all time) y: 99 lines of code conanfile.py x: 2 contributors (all time) y: 25 lines of code src/fbx/FbxSkinningAccess.cpp x: 3 contributors (all time) y: 80 lines of code FindFBX.cmake x: 2 contributors (all time) y: 88 lines of code src/fbx/Fbx2Raw.hpp x: 3 contributors (all time) y: 8 lines of code src/fbx/FbxLayerElementAccess.hpp x: 2 contributors (all time) y: 80 lines of code src/fbx/FbxSkinningAccess.hpp x: 2 contributors (all time) y: 56 lines of code src/fbx/materials/3dsMaxPhysicalMaterial.cpp x: 2 contributors (all time) y: 122 lines of code src/fbx/materials/FbxMaterials.hpp x: 2 contributors (all time) y: 41 lines of code src/fbx/materials/RoughnessMetallicMaterials.hpp x: 2 contributors (all time) y: 57 lines of code src/fbx/materials/StingrayPBSMaterial.cpp x: 2 contributors (all time) y: 52 lines of code src/fbx/materials/TraditionalMaterials.cpp x: 2 contributors (all time) y: 102 lines of code src/fbx/materials/TraditionalMaterials.hpp x: 2 contributors (all time) y: 30 lines of code src/gltf/GltfModel.cpp x: 2 contributors (all time) y: 64 lines of code src/gltf/GltfModel.hpp x: 4 contributors (all time) y: 130 lines of code src/gltf/Raw2Gltf.cpp x: 6 contributors (all time) y: 675 lines of code src/gltf/Raw2Gltf.hpp x: 2 contributors (all time) y: 145 lines of code src/gltf/TextureBuilder.cpp x: 2 contributors (all time) y: 186 lines of code src/gltf/properties/AccessorData.cpp x: 3 contributors (all time) y: 29 lines of code src/gltf/properties/AccessorData.hpp x: 3 contributors (all time) y: 28 lines of code src/gltf/properties/AnimationData.cpp x: 2 contributors (all time) y: 35 lines of code src/gltf/properties/AnimationData.hpp x: 2 contributors (all time) y: 24 lines of code src/gltf/properties/BufferData.hpp x: 2 contributors (all time) y: 13 lines of code src/gltf/properties/CameraData.cpp x: 2 contributors (all time) y: 19 lines of code src/gltf/properties/ImageData.hpp x: 2 contributors (all time) y: 11 lines of code src/gltf/properties/LightData.cpp x: 2 contributors (all time) y: 37 lines of code src/gltf/properties/MaterialData.cpp x: 3 contributors (all time) y: 108 lines of code src/gltf/properties/MaterialData.hpp x: 3 contributors (all time) y: 51 lines of code src/gltf/properties/SamplerData.hpp x: 2 contributors (all time) y: 8 lines of code src/utils/File_Utils.cpp x: 2 contributors (all time) y: 70 lines of code src/utils/File_Utils.hpp x: 2 contributors (all time) y: 47 lines of code azure-pipelines.yml x: 1 contributors (all time) y: 76 lines of code
1021.0
lines of code
  min: 8.0
  average: 93.73
  25th percentile: 16.0
  median: 49.0
  75th percentile: 80.0
  max: 1021.0
0 9.0
contributors (all time)
min: 1.0 | average: 2.59 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 9.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".