Bug: DXF: INSERT with a scale factor does not scale the block base point
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- computer-graphics
Research direction
Start by locating Assimp's DXF importer and tracing how it transforms block entities for INSERT, using the attached minimal DXF files to reproduce the issue. Check the base point, insertion position, and scale order for both positive and negative scale factors; done means the imported LINE matches the expected coordinates in both cases.
Written by the indexing model from the issue text.
Description
Assimp 6.0.6 (Homebrew, macOS), Importer::ReadFile(path, 0).
Steps: open base_scale.dxf. Block base point (10,0), LINE (10,0)-(20,0), INSERT at (0,0) with scale 2.
Expected: LINE (0,0)-(20,0), i.e. insert + scale * (v - base).
Actual: LINE (10,0)-(30,0). The base point is subtracted after scaling. A mirrored insert (negative scale) with a base point is wrong in the same way.
Related: #5422 / PR #5426 fixed the order of position and scale, but not the base point.
Rendered in ODA Viewer 27.10. Black: the attached DXF as ODA Viewer draws it. Orange: what Assimp imported, added to the same file on a separate layer (cmp_*.dxf in the zip, so you can open it in any CAD program).
Found with a metamorphic testing tool that rewrites DXF files into equivalent forms. Minimal DXF files attached.
- Dominant language
- C++
- Stars
- 13.3k
- Forks
- 3.3k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 12
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from assimp/assimp
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
Bug: X3D exporter reads the texture mapping mode into a bool (undefined behaviour, repeatS/repeatT inverted)Possibly taken A pull request linked to this issue is open or already merged. OpenBug Textures UVs X3D
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
Bug: glTF2 export loses AI_MATKEY_OPACITY in baseColorFactor[3] when KHR_materials_specular is writtenPossibly taken @neeldj claimed this 22 days ago. OpenExport glTF2.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
assimp/assimp#7034 · 2 comments ·
Maintainers usually reply within 2 days
Similar issues
-
connector-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gettakaro/connectors#1067 ·
Maintainers usually reply within 1 day
-
bot-triaged enhancement module: fft triaged
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialogPossibly taken @dpc00 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days