mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.03k stars 583 forks source link

DWG localisation problem #1353

Open bdaniere opened 3 years ago

bdaniere commented 3 years ago

Hello,

I try to import DWG drawings and convert them to Path2D :

import trimesh

trimesh_dwg = trimesh.load(dwg_path)
trimesh_dwg.show()

In many cases, the result matches the data in the original dwg file perfectly On the other hand, in other cases, the geometries are sometimes badly positioned

Here is an example of a DWG retrieved from the internet: for example, we find geometries at x=841988 y= 826576 hotel_plans_and_facade.zip

with CAD viewer : image

_with trimeshdwg.show() : image

I admit that I am not an expert in DWG processing:

[2021-09-23 15:44:10] DEBUG (dxf.py:551) Entity type ELLIPSE not supported
_(or VIEWPORT / MTEXT / HATCH / ELLIPSE / BLOCK)_
autonomobil commented 3 years ago

Try to set the revision to ACAD2018, see https://github.com/mikedh/trimesh/issues/1415

edit: Nevermind, with ACAD2018 there's just some stuff lost