DiscussionsIssue archiveOCCT:Data Exchange

Archived issue #0033706

Data Exchange, Vrml - Recompute normals when the normal count is different to vertex count

CommunityOCCT:Data Exchangeassigned2 public notes

Search issues

Description

Some 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.

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Dear Commenter 2,
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!
02Author
Attachment 2 (PATCH) (1,117 bytes)   
Attachment 1 (WRL) (1,024,177 bytes)