Page MenuHomePhabricator

ContourModel is strangely rendered in oblique planes
Closed, ResolvedPublic

Description

Looks like the contour is projected onto the rotated plane. It seems to be too many vertices/lines drawn.
mitkContourModelGLMapper2D needs to be improved for oblique planes.

Event Timeline

Contour appears projected on axial view in instead of cut.

StrangeCut.PNG (404×744 px, 73 KB)

New remote branch pushed: bug-15870-contour-in-oblique-planes

Tobi,

check the value of scalardiff around line 167 (else if(scalardiff<0.25))

to my surprise, when manually tracing the difference way zero but around 0.35 during region growing

also make sure that "contour.project-onto-plane" is false

If current point is close enough to the current rendering plane a bool flag was set to true. This flag was never changed to false for the following points. So all points were drawn no matter if they were far away from the plane.

The behavior is much improved now but still it is not a real cut. Lines are only drawn for points that are close to the rendering plane. There is no real intersection of lines with the plane calculated.

[c96ae3]: Merge branch 'bug-15870-contour-in-oblique-planes'

Merged commits:

2013-08-26 13:50:09 Tobias Schroeder [ee0417]
Perfomance issues in UpDateOutputInformation fixed.


2013-08-26 09:24:59 Tobias Schroeder [a23978]
Draw closed contour in 3D.


2013-08-23 16:45:01 Tobias Schroeder [8096c9]
Bool flag was never changed to false again.


2013-08-23 15:27:15 Tobias Schroeder [19e641]
Do not draw last segment if property is not set.