You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to export some THREE.Line<BufferGeometry> objects and the exporter throws THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry. I checked and rechecked my code it looks absolutely fine (works fine with meshes, didn't try points).
privateparseLine(line: Line): void{letnbVertex=0constgeometry=line.geometryconsttype=line.typeif(geometry.isBufferGeometry){thrownewError('THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.')}
...
}
Suggested solution:
I believe this condition needs to be negated.
if(geometry.isBufferGeometry)
The text was updated successfully, but these errors were encountered:
three
version:^0.167.1
@types/three
version - :@types/[email protected]
three-stdlib
version:[email protected]
Problem description:
I was trying to export some
THREE.Line<BufferGeometry>
objects and the exporter throwsTHREE.OBJExporter: Geometry is not of type THREE.BufferGeometry
. I checked and rechecked my code it looks absolutely fine (works fine with meshes, didn't try points).Relevant code:
https://github.com/pmndrs/three-stdlib/blob/main/src/exporters/OBJExporter.ts
Suggested solution:
I believe this condition needs to be negated.
The text was updated successfully, but these errors were encountered: