Closed goretkin closed 5 years ago
I tried to load a .stl file as a GeometryTypes.GLUVMesh, i.e. load(p, GeometryTypes.GLUVMesh)
.stl
GeometryTypes.GLUVMesh
load(p, GeometryTypes.GLUVMesh)
and I get ERROR: MethodError: no method matching Nothing(::Float32, ::Float32, ::Float32).
ERROR: MethodError: no method matching Nothing(::Float32, ::Float32, ::Float32)
That's because normaltype(GLUVMesh) is Nothing.
normaltype(GLUVMesh)
Nothing
the .obj parser uses hasnormals to check this.
.obj
hasnormals
(ASCII STL is not affected since it appears to ignore normals always)
I tried to load a
.stl
file as aGeometryTypes.GLUVMesh
, i.e.load(p, GeometryTypes.GLUVMesh)
and I get
ERROR: MethodError: no method matching Nothing(::Float32, ::Float32, ::Float32)
.That's because
normaltype(GLUVMesh)
isNothing
.the
.obj
parser useshasnormals
to check this.(ASCII STL is not affected since it appears to ignore normals always)