From 497d2a77c9804d2032ad4b1a2e745f8b680bb21a Mon Sep 17 00:00:00 2001 From: splohmer <113967431+splohmer@users.noreply.github.com> Date: Fri, 2 Dec 2022 09:14:49 +0100 Subject: [PATCH] z position for arc elements defaults to 0 in some dxf files I regognized that the z position for arc elements is not set. In this case the library is not able to show the dxf file. If not set, the default is set to 0. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6f68b3d..d4ebd22 100644 --- a/src/index.js +++ b/src/index.js @@ -519,7 +519,7 @@ export function Viewer(data, parent, width, height, font) { var arc = new THREE.Line(geometry, material); arc.position.x = entity.center.x; arc.position.y = entity.center.y; - arc.position.z = entity.center.z; + arc.position.z = entity.center.z || 0; return arc; }