MantisBT - Community | View Issue Details |
| ID | Project | Category | View Status | Date Submitted | Last Update | 0024144 | Community | [OCCT] OCCT:Modeling Algorithms | public | 2013-09-04 19:11 | 2013-12-19 13:58 |
| Reporter | eryar | | Assigned To | bugmaster | | Priority | normal | Severity | minor | | Status | closed | Resolution | fixed | | Platform | Windows | OS | VC++ 2008 | OS Version | 64 bit | Product Version | [OCCT] 6.6.0 | | Target Version | [OCCT] 6.7.0 | Fixed in Version | [OCCT] 6.7.0 | | Test case number | bugs modalg_5(010) bug24144_1, bug24144_2 |
| Summary | 0024144: BRepPrimAPI_MakeWedge wrong | Description | dx = 200.0;
dy = 620.0;
dz = 2150.0;
xmin = 0;
xmax = 200;
zmin = 1075;
zmax = 1075;
1. When use the following constructor, the wedge result is correct;
BRepPrimAPI_MakeWedge(dx, dy, dz, xmin, zmin, xmax, zmax);
2. When use the following constructor, make wedge with gp_Ax2 will get wrong result:
BRepPrimAPI_MakeWedge(axis, dx, dy, dz, xmin, zmin, xmax, zmax);
See the attach picture: | Steps To Reproduce | | Additional information and documentation updates | | Tags | No tags attached. | Relationships | | Attached Files | BRepPrimAPI_MakeWedge.png (18,687) 2013-09-04 19:11 https://tracker.dev.opencascade.org/
testFunction.txt (595) 2013-10-14 10:34 https://tracker.dev.opencascade.org/
wedge.png (4,170) 2013-10-16 14:15 https://tracker.dev.opencascade.org/ |
| Issue History | Date Modified | Username | Field | Change | 2013-09-04 19:11 | eryar | New Issue | | 2013-09-04 19:11 | eryar | Assigned To | => ifv | 2013-09-04 19:11 | eryar | File Added: BRepPrimAPI_MakeWedge.png | | 2013-10-08 13:33 | ifv | Assigned To | ifv => aml | 2013-10-08 13:34 | ifv | Status | new => assigned | 2013-10-14 10:34 | aml | File Added: testFunction.txt | | 2013-10-14 10:35 | aml | Note Added: 0026060 | | 2013-10-14 10:35 | aml | Assigned To | aml => ifv | 2013-10-14 10:35 | aml | Status | assigned => resolved | 2013-10-14 10:35 | aml | Note Edited: 0026060 | bug_revision_view_page.php?bugnote_id=26060#r6030 | 2013-10-14 11:09 | ifv | Note Added: 0026062 | | 2013-10-14 11:09 | ifv | Status | resolved => reviewed | 2013-10-15 16:31 | mkv | Note Added: 0026091 | | 2013-10-15 16:32 | mkv | Test case number | => bugs modalg_5(010) bug24144_1, bug24144_2 | 2013-10-15 16:32 | mkv | Assigned To | ifv => bugmaster | 2013-10-15 16:32 | mkv | Status | reviewed => tested | 2013-10-16 14:15 | eryar | Note Added: 0026106 | | 2013-10-16 14:15 | eryar | File Added: wedge.png | | 2013-10-17 11:24 | bugmaster | Target Version | => 6.7.0 | 2013-10-18 13:47 | bugmaster | Changeset attached | => occt master b70bbe58 | 2013-10-18 13:47 | bugmaster | Status | tested => verified | 2013-10-18 13:47 | bugmaster | Resolution | open => fixed | 2013-12-19 13:51 | bugmaster | Status | verified => closed | 2013-12-19 13:58 | bugmaster | Fixed in Version | => 6.7.0 |
Notes |
|
(0026060)
|
aml
|
2013-10-14 10:35
|
|
Dear ifv,
Please, test the current state of branch CR24144 to be sure it is still ok.
for testing you can add debug function in BRepTest_PrimitiveCommands.cxx (code in attach file).
|
|
|
(0026062)
|
ifv
|
2013-10-14 11:09
|
|
|
|
(0026091)
|
mkv
|
2013-10-15 16:31
|
|
|
|
(0026106)
|
eryar
|
2013-10-16 14:15
|
|
If do not set the axis of the wedge, the result is right;
If set the axis to an arbitrary direction, the result is wrong.
My code is as follow:
// Test wedge shape.
BRepPrimAPI_MakeWedge mkWedge1(200, 620, 2150, 0, 1075, 200, 1075);
Handle_AIS_Shape wedge1 = new AIS_Shape(mkWedge1.Shape());
myAISContext->Display(wedge1);
//gp_Ax2 axis;
gp_Ax2 axis(gp_Pnt(0, 200, 0), gp_Dir(1, 1, 1));
BRepPrimAPI_MakeWedge mkWedge2(axis, 200, 620, 2150, 0, 1075, 200, 1075);
Handle_AIS_Shape wedge2 = new AIS_Shape(mkWedge2.Shape());
myAISContext->Display(wedge2); |
|
|