Using new export GLTF edges functionality

Hello,

I updated to the latest master branch, and am trying to save STEP files as GLTF, which would would include the edges (as was implemented here). The way I'm doing this is by opening the document, meshing with BRepMesh_IncrementalMesh, then saving with RWGltf_CafWriter::Perform.

I tried opening the resulting GLTF in the same online viewer linked in the issue, but I don't see any edges (see attached picture)

Is there some parameter that needs to be set for this to work? Is it on by default? Is there some constraint on when this can be used?

I'm attaching a binary, draco compressed file I produced with the latest master (7aa8558)

Dmitrii Pasukhin's picture

Hello, could you please share the original file? Do it have edges? Some topology structure can have issues, we need to check and fix them if they exist.

As for an option - writing edge is enabled by default.

Best regards, Dmitrii,

Elias Cohenca's picture

Here's the original step file attached.

Is there a sample of a Step file that should work, that I can test?

Dmitrii Pasukhin's picture

You model have no "free edges", edges which are not a part of face topology. You can check the result on the model, where the free edges or vertexes presented.

Elias Cohenca's picture

Is it possible to create these free edges from the original model, so that they are displayed in the gltf file?