View Issue Details

IDProjectCategoryView StatusLast Update
0033706CommunityOCCT:Data Exchangepublic2024-05-13 12:43
Reporterdsa-t Assigned Todpasukhi  
PrioritynormalSeverityintegration request 
Status assignedResolutionopen 
PlatformWindowsOSVC 2022 
Product Version7.8.0 
Target Version7.9.0 
Summary0033706: Data Exchange, Vrml - Recompute normals when the normal count is different to vertex count
DescriptionSome VRML models define IndexedFaceSet with Normal as empty vector array.
This causes a "zero norm" exception in gp_Dir constructor when calling aTriangulation->SetNormal() in VrmlData_IndexedFaceSet::TShape.

Example structure:
Shape {
  appearance 
  Appearance {
    ...
  }
  geometry 
  IndexedFaceSet {
    coord 
    Coordinate {
      ...
    }
    normal 
    Normal {
      vector [  ]

    }
    coordIndex [
      ... ]
    ...
  }

},


Example file and patch are attached.

It is ok to push the patch without CLA.
TagsNo tags attached.
Test case number

Attached Files

  • vrml-normals-count.patch (1,117 bytes)
  • BHC-18650-1P.wrl (1,024,177 bytes)

Activities

dpasukhi

2024-05-13 12:26

administrator   ~0115817

Dear @dsa-t,
My apologies, there are some internal bug with attachments, Could you please re-attach files as a new node(Add Node).

Thank you for your investigation!

dsa-t

2024-05-13 12:43

reporter   ~0115819

vrml-normals-count.patch (1,117 bytes)
BHC-18650-1P.wrl (1,024,177 bytes)

Issue History

Date Modified Username Field Change
2024-05-12 14:21 dsa-t New Issue
2024-05-12 14:21 dsa-t Assigned To => ika
2024-05-13 12:24 dpasukhi Target Version => 7.9.0
2024-05-13 12:25 dpasukhi Summary VRML - Recompute normals when the normal count is different to vertex count => Data Exchange, Vrml - Recompute normals when the normal count is different to vertex count
2024-05-13 12:25 dpasukhi Description Updated
2024-05-13 12:25 dpasukhi Assigned To ika => dpasukhi
2024-05-13 12:25 dpasukhi Status new => assigned
2024-05-13 12:26 dpasukhi Note Added: 0115817
2024-05-13 12:43 dsa-t Note Added: 0115819
2024-05-13 12:43 dsa-t File Added: vrml-normals-count.patch
2024-05-13 12:43 dsa-t File Added: BHC-18650-1P.wrl