View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011804 | Open CASCADE | OCCT:Visualization | public | 2006-03-06 16:54 | 2012-01-13 18:26 |
Reporter | Assigned To | ||||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 6.1.1 | ||||
Summary | 0011804: Regression concerning to incorrect definition of a bounding box (minimal and maximal values) for markers in 3D view | ||||
Description | According to IMP240100 minimal and maximal values for markers in 3D view are computed using a value of a marker scale factor: ... Standard_Real xm = X - MyCGroup.ContextMarker.Scale; Standard_Real ym = Y - MyCGroup.ContextMarker.Scale; Standard_Real zm = Z - MyCGroup.ContextMarker.Scale; Standard_Real XM = X + MyCGroup.ContextMarker.Scale; Standard_Real YM = Y + MyCGroup.ContextMarker.Scale; Standard_Real ZM = Z + MyCGroup.ContextMarker.Scale; ... It is incorrect, because the scale factor concerns to a projected view window, not 3D view. It is impossible to calculate dimensions of a marker in the model 3D space, while a presentation is being computed: 2D marker size is constant, and the complete transformation necessary to calculate the marker bounds in 3D model space starting from its 2D size becomes available only at view redrawing step. So, it is necessary to refuse a use of a marker scale in a bounding box computation: ... if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X); if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y); if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z); if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X); if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y); if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z); ... | ||||
Additional information and documentation updates | Documentation remark, added by SKT 2006-09-29 14:52:44: New features: not required | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2006-04-06 18:42 | bugmaster | Assigned To | bugmaster => skt |
2006-04-06 18:42 | bugmaster | Status | new => assigned |
2006-04-06 18:42 | bugmaster | CC | => imv |
2006-04-06 18:42 | bugmaster | Status | assigned => tested |
2006-07-19 10:25 | bugmaster | Status | tested => verified |
2006-10-27 16:15 | bugmaster | Status | verified => closed |
2006-10-27 16:15 | bugmaster | Resolution | @0@ => fixed |
2011-08-02 11:24 | bugmaster | Category | OCCT:VIZ => OCCT:Visualization |
2012-01-13 18:26 |
|
Assigned To | skt => |
2012-01-13 18:26 |
|
Description Updated | |
2012-01-13 18:26 |
|
Additional Information Updated |