View Issue Details

IDProjectCategoryView StatusLast Update
0030930Open CASCADEOCCT:DRAWpublic2019-09-07 16:27
Reporterkgv Assigned Toapn  
PrioritynormalSeverityintegration request 
Status closedResolutionfixed 
Target Version7.4.0Fixed in Version7.4.0 
Summary0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials
DescriptionOCCT defines lists of standard Colors (Quantity_NameOfColor) and Materials (Graphic3d_NameOfMaterial). Although many commands accept names of these items, there is no Draw Harness command listing available values.

It is proposed adding new commands vlistcolors and vlistmaterials, which without arguments will print names of pre-defined constants. Extra syntax can be useful for generating comparison tables and items properties.

This is also important to have some references for non-regression tests.
Steps To ReproduceN/A
TagsNo tags attached.
Test case numberv3d materials colors, materials

Attached Files

  • occt_colors_630.png (6,197 bytes)
  • occt_colors_630_html_table.png (32,085 bytes)
  • occt_materials_630_html_table.png (112,431 bytes)

Relationships

related to 0029528 closedapn Visualization, TKOpenGl - allow defining sRGB textures 
related to 0029516 closedbugmaster Visualization - eliminate redundant property Graphic3d_MaterialAspect::ReflectionMode() 

Activities

git

2019-08-30 17:57

administrator   ~0086554

Branch CR30930 has been created by kgv.

SHA-1: 81c2dadcd6b1c587d36d93affbfabbb0924c590c


Detailed log of new commits:

Author: kgv
Date: Fri Aug 30 17:54:09 2019 +0300

    0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials

kgv

2019-08-30 19:49

developer   ~0086558

Last edited: 2019-08-30 19:52

Patch is ready for review.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30930-master-KGV

kgv

2019-08-30 19:49

developer  

occt_colors_630.png (6,197 bytes)

kgv

2019-08-30 19:50

developer  

occt_colors_630_html_table.png (32,085 bytes)

kgv

2019-08-30 19:51

developer  

occt_materials_630_html_table.png (112,431 bytes)

git

2019-08-31 09:53

administrator   ~0086566

Branch CR30930 has been updated forcibly by kgv.

SHA-1: 8e7eb99b5032957360e47b58a5fd33cb431e58e6

git

2019-08-31 13:32

administrator   ~0086573

Branch CR30930 has been updated forcibly by kgv.

SHA-1: 03418f3ce77100eedec697eed2b22549bfa0f1d1

san

2019-09-02 18:59

developer   ~0086670

Branch CR30930 reviewed without remarks.

apn

2019-09-02 19:09

administrator   ~0086672

Combination -
OCCT branch : CR30930
master SHA - 81c2dadcd6b1c587d36d93affbfabbb0924c590c
5f5b1aed1c6e139bbd34314eca77ae7abcd8895c
Products branch : master SHA - 32e882a7b3145a66baa739f965d275c822c0bd8a
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16108.670000000018 / 16107.320000000014 [+0.01%]
Products
Total CPU difference: 10480.140000000023 / 10489.71000000005 [-0.09%]
Windows-64-VC14:
OCCT
Total CPU difference: 18290.984375 / 18158.171875 [+0.73%]
Products
Total CPU difference: 12089.6875 / 12068.71875 [+0.17%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2019-09-07 16:27

administrator   ~0086946

Branch CR30930 has been deleted by inv.

SHA-1: 03418f3ce77100eedec697eed2b22549bfa0f1d1

Related Changesets

occt: master 59ee34ef

2019-08-30 14:54:09

kgv


Committer: apn Details Diff
0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials

Introduced two new commands vlistcolors listing named colors and vlistmaterials listing standard materials.
These commands also can generate HTML table listing colors/materials with their properties.
vlistmaterials can generate OBJ model for comparing OCCT materials in different viewers.
New test cases use these commands for generating HTML tables.

Graphic3d_MaterialAspect::MaterialType() - added missing getter.
Corrected name of unlit shading model within vaspects and vrenderparams commands.
Affected Issues
0030930
mod - src/Graphic3d/Graphic3d_MaterialAspect.hxx Diff File
mod - src/Graphic3d/Graphic3d_TypeOfMaterial.hxx Diff File
mod - src/Quantity/Quantity_Color.hxx Diff File
mod - src/Quantity/Quantity_NameOfColor.hxx Diff File
mod - src/ViewerTest/ViewerTest.cxx Diff File
mod - src/ViewerTest/ViewerTest_OpenGlCommands.cxx Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
add - tests/v3d/materials/colors Diff File
add - tests/v3d/materials/materials Diff File

Issue History

Date Modified Username Field Change
2019-08-30 16:14 kgv New Issue
2019-08-30 16:14 kgv Assigned To => kgv
2019-08-30 17:57 git Note Added: 0086554
2019-08-30 19:49 kgv Note Added: 0086558
2019-08-30 19:49 kgv Assigned To kgv => san
2019-08-30 19:49 kgv Status new => resolved
2019-08-30 19:49 kgv Description Updated
2019-08-30 19:49 kgv File Added: occt_colors_630.png
2019-08-30 19:50 kgv File Added: occt_colors_630_html_table.png
2019-08-30 19:51 kgv File Added: occt_materials_630_html_table.png
2019-08-30 19:52 kgv Note Edited: 0086558
2019-08-30 19:53 kgv Relationship added related to 0029528
2019-08-31 09:53 git Note Added: 0086566
2019-08-31 13:32 git Note Added: 0086573
2019-09-01 10:38 kgv Relationship added related to 0029516
2019-09-02 18:59 san Note Added: 0086670
2019-09-02 18:59 san Assigned To san => bugmaster
2019-09-02 18:59 san Status resolved => reviewed
2019-09-02 19:07 apn Test case number => v3d materials colors, materials
2019-09-02 19:09 apn Note Added: 0086672
2019-09-02 19:09 apn Status reviewed => tested
2019-09-07 11:38 apn Changeset attached => occt master 59ee34ef
2019-09-07 11:38 apn Assigned To bugmaster => apn
2019-09-07 11:38 apn Status tested => verified
2019-09-07 11:38 apn Resolution open => fixed
2019-09-07 16:27 git Note Added: 0086946