Repository navigation
Write no IFC body for a part with coincident end points - #48
Merged
Merged
Conversation
For a part whose end points are less than 0.001 mm apart, the IFC output wrote a box of no or nearly no length, and tdbio counted it as a proxy box. Its element and ID now stay without a representation, as the scene output already gives such a part no mesh, and the warning counts only the parts that have a body.
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes and why
For a part whose end points are less than 0.001 mm apart, the scene output reports no usable geometry and emits no mesh. The IFC output still wrote a box of no or nearly no length for it (along the X axis when the points coincide), and
tdbiocounted it as a proxy box.tdbio export --ifccounts only the parts that have a body.docs/cli.mdand the CHANGELOG entry for the IFC output say so. No public API changes.Known limit: the IFC export prints only the count. It does not list the parts without a body, and it prints no warning when no part has one.
How it was checked
dotnet build TdbIO.slnx -c Releasehas no warningsdotnet test TdbIO.slnx -c Releasepasses: on net8.0 and net10.0,TdbIO.Tests499 passed and 38 skipped (private inputs),TdbIO.Scene.Tests13 passedtdbio info,tdbio tablesandtdbio texton the same files is identical before and after: 18 of 18 runs, with and without--json, on three synthetic modelsNew tests: five library cases on both sides of the limit, in millimetres and metres, and a command line export of a normal part and a part with coincident ends. Both elements stay with their tags, only one refers to a shape, and the warning says 1 of 2. Against the code before the change, this command line test fails with 2 of 2.
The native engine build of
TdbIO.Scene(-p:BuildNativeCoreOnly=true),dotnet packwith the package validation against 0.1.0 forced to run, andgit diff --checkpass.Export comparison
tdbioon net8.0, before and after, on three synthetic models: one normal part; a second part whose ends are one point; a second part whose ends are two points with the same coordinates.CreatedAt, which holds the time of the run. Its warnings are identical.FILE_NAMEare replaced.Not run: private test files and real models, and local runs on Linux or macOS.