Data Exchange, GLTF - Change export line type to LINE_STRIP#535
Data Exchange, GLTF - Change export line type to LINE_STRIP#535dpasukhi merged 6 commits intoOpen-Cascade-SAS:IRfrom
Conversation
|
checknbshapes s -vertex 4 -edge 2 nbshapes s Number of shapes in s VERTEX : 4 EDGE : 0 WIRE : 0 FACE : 0 SHELL : 0 SOLID : 0 COMPSOLID : 0 COMPOUND : 5 SHAPE : 9 |
|
The regression report: https://github.com/Open-Cascade-SAS/OCCT/actions/runs/15046440158/artifacts/3131899454 I assume issue during import, I will ask Marina to check :) |
Problem was that during reading of gltf, only LINE types were expected. Adding LINE_STRIP there as well fixes this. |
|
Could you please apply git patch? |
|
@elias-bananaz Could you please apply patch? I have no permission to push into your branch. patch can be download from https://github.com/Open-Cascade-SAS/OCCT/actions/runs/15062416564/artifacts/3137110877 |
@dpasukhi Applied the patch |
…ade-SAS#535 GLTF exporter mark edges as a LINE, which is 2 connected points. OCCT polylines is mostly line strip structure. Updated GLTF reader to handle new type of lines
…pen-Cascade-SAS#535" This reverts commit b29788c.
Description
When exporting to GLTF the edges appear dashed:

The Problem
The GLTF writer uses
RWGltf_GltfPrimitiveMode_Linesas the type for edges. According to the spec:The Solution
Use line strips instead:
Result