View Issue Details

IDProjectCategoryView StatusLast Update
0011804Open CASCADEOCCT:Visualizationpublic2012-01-13 18:26
ReportersktAssigned To 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.1.1 
Summary0011804: Regression concerning to incorrect definition of a bounding box (minimal and maximal values) for markers in 3D view
DescriptionAccording 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
TagsNo tags attached.
Test case number

Attached Files

  • skt-MarkerBounds.tar.gz (907 bytes)

Activities

2006-03-06 14:54

 

skt-MarkerBounds.tar.gz (907 bytes)

Issue History

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 atp Assigned To skt =>
2012-01-13 18:26 atp Description Updated
2012-01-13 18:26 atp Additional Information Updated