-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix memory override for vtkContourFiler in isofillpipeline. #1983
Conversation
Data in: |
@doutriaux1 @aashish24 please review. |
I'm excited about this one! |
what was the logic behind this before: cot.SetValue(numLevels, l[-1]) |
This writes over the end of the array. |
Yeah it seems weird, I couldn't think of why it was like this. |
@danlipsa you want to use regression module. so instead of this
You can do: x = regression.init(bg=1, geometry=(800, 600)) # Let's use 800x600 from now on
|
This resulted in vtkStripper to generate double coverage of isocountours which resulted in messed-up patterns. Also adjusted plot patterns to easier to discriminate.
@aashish24 Should we do 800 x 600 even for background images? That seems very small considering that we can make images as big as we want. For now I left the image as it was. |
@danlipsa if we make images smaller for testing, then we will have faster checkout of baselines. In vtk the sizes are 400, 400. |
@danlipsa @aashish24 I don[t think making the picture smaller will make the test much faster, but we will lose precision in the output and we might not be able to catch small difference, in things like dotted line and such. Just my two cents. |
@aashish24 @doutriaux1 Indeed, for this particular test, 800 x 600 does not catch the difference between a wrong file and a good one - the difference is about 5. |
For the current resolution the difference is 20 is the error is caught. |
@aashish24 Should we merge this in? Note the many sizes we currently have in the repo: |
@danlipsa in that case can we use 1200 x 1091 (the default size in regression.py) unless you don't think it catches the error. I see your point that we have different size for testing right now but most of them are using regression.py so it would be nice if we can use 1200x1091. |
but I am fine if the current resolution is best for the testing too 👍 |
@doutriaux1 @aashish24 1200 x 1091 is fine. In that case we should look at the baselines of size 1200 x 1090 and make sure we don't compare them against images of size 1200 x 1091. |
@doutriaux1 @aashish24 Note line stipples are not supported yet in OpenGL2 backend for VTK because they have been removed from OpenGL 3.1. |
This resulted in vtkStripper to generate double coverage of isocountours which resulted in
messed-up patterns.
Also adjusted plot patterns to easier to discriminate.