mirror of https://github.com/rusefi/jzy3d-api.git
Adding smooth line
This commit is contained in:
parent
3d79fc20ae
commit
35b013bde3
|
@ -226,6 +226,8 @@ public class Chart {
|
|||
}
|
||||
|
||||
// Restore 3D layout to view
|
||||
//viewPositionMode = ViewPositionMode.FREE;
|
||||
|
||||
View view = getView();
|
||||
view.setViewPoint(viewpoint, false);
|
||||
view.setViewPositionMode(viewPositionMode);
|
||||
|
|
|
@ -130,11 +130,19 @@ public class Quality {
|
|||
return smoothLine;
|
||||
}
|
||||
|
||||
public Quality setSmoothEdge(boolean smoothLine) {
|
||||
public Quality setSmoothLine(boolean smoothLine) {
|
||||
this.smoothLine = smoothLine;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use setSmoothLine instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Quality setSmoothEdge(boolean smoothLine) {
|
||||
return setSmoothLine(smoothLine);
|
||||
}
|
||||
|
||||
public boolean isSmoothPoint() {
|
||||
return smoothPoint;
|
||||
}
|
||||
|
|
|
@ -109,7 +109,6 @@ public class NativeDesktopPainter extends AbstractPainter implements IPainter {
|
|||
// Activate Depth buffer
|
||||
if (quality.isDepthActivated()) {
|
||||
|
||||
|
||||
gl.glEnable(GL.GL_DEPTH_TEST);
|
||||
gl.glDepthFunc(GL.GL_LEQUAL);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue