mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/*/curve_view] Remove samplingRatio()
The resolution() method is useful to get a horizontal step equivalent to the width of a pixel. A higher sampling ratio (or resolution) had been introduced in the following commit. [apps] In curve view, avoid white vertical lines in integral curves due to pixel rounding
This commit is contained in:
committed by
EmilieNumworks
parent
7cbc489052
commit
c80baae1e9
@@ -84,7 +84,7 @@ InteractiveCurveViewRangeDelegate::Range FunctionGraphController::computeYRange(
|
||||
range.max = xMax;
|
||||
return range;
|
||||
}
|
||||
float step = (xMax - xMin) / curveView()->resolution();
|
||||
float step = (xMax - xMin) / curveView()->resolution() / 2;
|
||||
for (int i=0; i<functionStore()->numberOfActiveFunctions(); i++) {
|
||||
ExpiringPointer<Function> f = functionStore()->modelForRecord(functionStore()->activeRecordAtIndex(i));
|
||||
/* Scan x-range from the middle to the extrema in order to get balanced
|
||||
|
||||
Reference in New Issue
Block a user