View Issue Details

IDProjectCategoryView StatusLast Update
0028176Open CASCADEOCCT:DRAWpublic2018-06-29 21:19
ReporteramlAssigned Toapn  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version7.1.0 
Target Version7.3.0Fixed in Version7.3.0 
Summary0028176: Draw Harness - "reshape" command usage is not properly documented
DescriptionAccording to the "reshape" command help, it is not defined how to get the modified shape

  theCommands.Add ("reshape",
    "\n Basic utility for topological modification: "
    "\n '-replace what with' Replaces 'what' sub-shape with 'with' sub-shape"
    "\n '-remove what' Removes 'what' sub-shape"
    "\n Requests '-replace' and '-remove' can be repeated many times.",
    __FILE__, reshape, g);

According to the implementation this command should have the following syntax:
reshape resultShape shapeForModifications [-replace what with] [-remove what]

Steps To ReproduceN/A
TagsNo tags attached.
Test case numberNot needed

Activities

ssv

2016-11-30 13:25

developer   ~0060904

It is also necessary to check logic of iteration. Seems like iterator starts from wrong index (1 instead of 3).

git

2018-01-27 11:20

administrator   ~0073625

Branch CR28176 has been created by aml.

SHA-1: 12a6641c819526b0f6b74ce73e2a1d4e673e8d9a


Detailed log of new commits:

Author: aml
Date: Sat Jan 27 11:20:27 2018 +0300

    0028176: Draw Harness - "reshape" command usage is not properly documented
    
    Help message is corrected for "reshape" command. Command implementation is corrected according OCCT coding rules.

git

2018-01-27 11:24

administrator   ~0073626

Branch CR28176 has been updated by aml.

SHA-1: 4ddbca037a0f86b5bdb16bf0765f53068a687e8c


Detailed log of new commits:

Author: aml
Date: Sat Jan 27 11:24:34 2018 +0300

    # Add "static" keyword before function implementation.

git

2018-01-29 07:12

administrator   ~0073631

Branch CR28176 has been updated forcibly by aml.

SHA-1: e9adccb58f212e2a4cf21a579432943cb333ac4b

aml

2018-01-29 10:46

developer   ~0073639

Dear kgv, could you please take a look at the CR28176 branch?
Testing results: http://jenkins-test-10.nnov.opencascade.com/view/CR28176-master-AML/view/COMPARE/

kgv

2018-01-29 12:44

developer   ~0073647

-        di << "Error: shape to remove ('" << a[i] << "') is null\n";
+        theDI << "Error: shape to remove ('" << theArgv[i] << "') is null\n";
         return 1;
...
-    di << "Error: result shape is null\n";
+    theDI << "Error: result shape is null\n";
     return 1;
...
<several occurrences>

no point for theDI due to raising Tcl exception afterwards, std::cout is enough.

+    else if ( anOpt == "-remove" )
     {
...
     }

No warning/error on passing invalid/unknown arguments ("Syntax error" is usually printed + return 1 in such cases).

git

2018-01-29 19:02

administrator   ~0073668

Branch CR28176 has been updated by aml.

SHA-1: 5a4e976e5aad19350df8edd0e3955d1ef0ddbc1a


Detailed log of new commits:

Author: aml
Date: Mon Jan 29 18:57:49 2018 +0300

    # Remarks correction.

kgv

2018-01-29 21:41

developer   ~0073669

+      cout << "Error: invalid syntax" << endl;

This message is not helpful - it should include the argument, where error occurred, e.g.:
> std::cout << "Syntax error at '" << anArg << "'\n";

-    theDI << "Error: result shape is null\n";
+    cout << "Error: result shape is null" << endl;

endl usage is not practical in this context - \n is enough.

git

2018-01-30 07:04

administrator   ~0073670

Branch CR28176 has been updated by aml.

SHA-1: de2e9db81c9ec0aedf98da0dd16327c7fe53785f


Detailed log of new commits:

Author: aml
Date: Tue Jan 30 07:04:33 2018 +0300

    # Remarks correction.

aml

2018-01-30 10:17

developer   ~0073671

Last edited: 2018-01-30 10:39

Remarks are corrected. Testing results: http://jenkins-test-10.nnov.opencascade.com:8080/view/CR28176-master-AML/view/COMPARE/. Could you please check?

kgv

2018-01-30 10:58

developer   ~0073672

Patch looks OK.

apn

2018-01-30 11:10

administrator   ~0073673

Combination -
OCCT branch : CR28176 SHA - de2e9db81c9ec0aedf98da0dd16327c7fe53785f
Products branch : master SHA - 9d16afb77be76e276e46b7b3fc08eb16a4eea45e
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:
Debian70-64:
OCCT
Total CPU difference: 18594.219999999652 / 18668.749999999738 [-0.40%]
Products
Total CPU difference: 7496.349999999997 / 7517.660000000007 [-0.28%]
Windows-64-VC10:
OCCT
Total CPU difference: 18082.091510098548 / 18085.75753359851 [-0.02%]
Products
Total CPU difference: 7978.811545899959 / 8002.554898099971 [-0.30%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2018-02-05 11:39

administrator   ~0073754

Branch CR28176 has been deleted by kgv.

SHA-1: de2e9db81c9ec0aedf98da0dd16327c7fe53785f

Related Changesets

occt: master 9b1d4e7f

2018-01-27 08:20:27

aml


Committer: apn Details Diff
0028176: Draw Harness - "reshape" command usage is not properly documented

Help message is corrected for "reshape" command. Command implementation is corrected according OCCT coding rules.
Affected Issues
0028176
mod - src/SWDRAW/SWDRAW_ShapeUpgrade.cxx Diff File

Issue History

Date Modified Username Field Change
2016-11-30 11:43 aml New Issue
2016-11-30 11:43 aml Assigned To => apn
2016-11-30 11:44 aml Description Updated
2016-11-30 13:24 aml Assigned To apn => ssv
2016-11-30 13:25 ssv Note Added: 0060904
2016-11-30 13:25 ssv Status new => assigned
2017-07-20 11:57 msv Target Version 7.2.0 => 7.3.0
2018-01-27 11:08 aml Assigned To ssv => aml
2018-01-27 11:08 aml Summary "reshape" command usage is not properly documented => Draw Harness - "reshape" command usage is not properly documented
2018-01-27 11:20 git Note Added: 0073625
2018-01-27 11:24 git Note Added: 0073626
2018-01-29 07:12 git Note Added: 0073631
2018-01-29 10:46 aml Note Added: 0073639
2018-01-29 10:46 aml Assigned To aml => kgv
2018-01-29 10:46 aml Status assigned => resolved
2018-01-29 10:46 aml Steps to Reproduce Updated
2018-01-29 12:44 kgv Note Added: 0073647
2018-01-29 12:44 kgv Assigned To kgv => aml
2018-01-29 12:44 kgv Status resolved => assigned
2018-01-29 19:02 git Note Added: 0073668
2018-01-29 21:41 kgv Note Added: 0073669
2018-01-30 07:04 git Note Added: 0073670
2018-01-30 10:17 aml Note Added: 0073671
2018-01-30 10:17 aml Assigned To aml => kgv
2018-01-30 10:17 aml Status assigned => resolved
2018-01-30 10:39 aml Note Edited: 0073671
2018-01-30 10:58 kgv Note Added: 0073672
2018-01-30 10:58 kgv Assigned To kgv => bugmaster
2018-01-30 10:58 kgv Status resolved => reviewed
2018-01-30 11:10 apn Test case number => Not needed
2018-01-30 11:10 apn Note Added: 0073673
2018-01-30 11:10 apn Status reviewed => tested
2018-02-03 18:59 apn Changeset attached => occt master 9b1d4e7f
2018-02-03 18:59 apn Assigned To bugmaster => apn
2018-02-03 18:59 apn Status tested => verified
2018-02-03 18:59 apn Resolution open => fixed
2018-02-05 11:39 git Note Added: 0073754
2018-06-29 21:15 aiv Fixed in Version => 7.3.0
2018-06-29 21:19 aiv Status verified => closed