usnistgov / SFA

The NIST STEP File Analyzer and Viewer (SFA) generates a spreadsheet and a visualization from an ISO 10303 Part 21 STEP file.
https://www.nist.gov/services-resources/software/step-file-analyzer-and-viewer
138 stars 21 forks source link

Loss of Dimension Identification in X3D file #6

Closed Emmanuelhfc closed 3 weeks ago

Emmanuelhfc commented 3 months ago

Hello,

I use SFA to convert .step files to X3D format. In previous versions, the X3D files generated included identification in the ID attribute of tags indicating which dimension they represented. This feature was particularly useful for various post-processing tasks, such as hiding specific dimensions, changing their colors, and more. However, in the latest version of the repository, this identification is no longer present.

Example

Here is a simplified example to illustrate the issue:

Version 5.12

<Shape id='RD21@Annotations@10011907666SWA000.moAssembly_c'>
  <Appearance>
    <Material diffuseColor='0 0 0' emissiveColor='0 0 0' shininess='0'/>
  </Appearance>
  <IndexedFaceSet solid='false' coordIndex='2 0 1 -1'>
    <Coordinate DEF='coord84' point='555.492 -510.0 0.295 548.742 -483.0 0.274 562.242 -483.0 0.274'/>
  </IndexedFaceSet>
</Shape>

Version 5.14

<Shape>
  <Appearance>
    <Material diffuseColor='0 0 0' emissiveColor='0 0 0' shininess='0'/>
  </Appearance>
  <IndexedFaceSet solid='false' coordIndex='2 0 1 -1'>
    <Coordinate DEF='coord84' point='555.492 -510.0 0.295 548.742 -483.0 0.274 562.242 -483.0 0.274'/>
  </IndexedFaceSet>
</Shape>

Thank you for your attention to this matter.

robert-lipman commented 3 months ago

Sorry that the change in SFA 5.14 affected your use of the X3D files. There is a reason that the Shape IDs were removed, but I see that it was too broad. I will restore them in the next version. You can revert back to 5.12 to have the Shape IDs.

Emmanuelhfc commented 3 months ago

Perfect, thanks for your attention!

robert-lipman commented 2 months ago

This issue is fixed in version 5.16.