MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031136Open CASCADE[OCCT] OCCT:Modeling Datapublic2019-11-06 18:512019-11-07 11:30
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 6.3.1 
Target Version[OCCT] 7.5.0*Fixed in Version 
Summary0031136: Modeling Data - BinXCAF persistence loses normals from triangulation-only Faces
DescriptionBinXCAF persistence (BinTools_ShapeSet) does not store per-vertex normal information.

This is a problem in case of triangulation-only Faces, as there is no analytical geometry to restore normals.
Steps To Reproduce
pload MODELING XDE OCAF VISUALIZATION
source $env(CSF_OCCTSamplesPath)/tcl/cad.tcl
trinfo res
wavefront res o
readobj o o.obj
binsave o b.bbrep
binrestore b.bbrep b
# same for ASCII format
#save o b.brep
#restore b.brep b
# and for XBF (using BinTools_ShapeSet internally)
#XSave D1 b.xbf
#XOpen b.xbf D2

vclear
vclose ALL

vinit v1/v1
vfront
vdisplay -dispMode 1 res
vfit
vrenderparams -shadingModel phong

vinit v2/v2
vbottom
vdisplay -dispMode 1 b
vfit
vrenderparams -shadingModel phong
TagsNo tags attached.
Test case number
Attached Filespng file icon cad_ref_OK.png (35,177 bytes) 2019-11-06 18:52
png file icon cad_xcaf_KO.png (37,223 bytes) 2019-11-06 18:52

- Relationships
related to 0031137verifiedbugmaster Modeling Data, BinTools_ShapeSet - avoid allocation of temporary arrays 
related to 0027835closedbugmaster Application Framework, BinXCAF - handle correctly faces with NULL surface within BinTools_ShapeSet 
child of 0028125newmsv Modeling Algorithms - support of BRep shapes based on tessellated geometry 

-  Notes
(0088756)
git (administrator)
2019-11-06 19:27

Branch CR31136 has been created by kgv.

SHA-1: b9e59ab73fd56c77484a2e80cde9df77d01fe97a


Detailed log of new commits:

Author: kgv
Date: Wed Nov 6 19:26:24 2019 +0300

    0031136: Modeling Data - BinXCAF persistence loses normals from triangulation-only Faces
    
    BinTools - added missing tools for reading/writing short reals.
    BinTools_ShapeSet now defines maps with proper types instead of Standard_Transient.
    BinTools_ShapeSet::ReadTriangulation() - fixed inefficient reading of triangulation data
    with allocation or redundant temporary arrays.
    wavefront command - export "f" instead of obsolete "fo" keys into file.

- Issue History
Date Modified Username Field Change
2019-11-06 18:51 kgv New Issue
2019-11-06 18:51 kgv Assigned To => gka
2019-11-06 18:52 kgv File Added: cad_ref_OK.png
2019-11-06 18:52 kgv File Added: cad_xcaf_KO.png
2019-11-06 18:53 kgv Assigned To gka => kgv
2019-11-06 18:53 kgv Category OCCT:Data Exchange => OCCT:Modeling Data
2019-11-06 18:53 kgv Product Version 7.3.0 => 6.3.1
2019-11-06 18:53 kgv Summary Data Exchange - BinXCAF persistence loses normals from triangulation-only Faces => Modeling Data - BinXCAF persistence loses normals from triangulation-only Faces
2019-11-06 19:27 git Note Added: 0088756
2019-11-07 11:25 kgv Relationship added related to 0031137
2019-11-07 11:26 kgv Relationship added related to 0027835
2019-11-07 11:26 kgv Relationship added child of 0028125
2019-11-07 11:30 kgv Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker