Skip to content
Snippets Groups Projects
Unverified Commit 22a9cb57 authored by Jamie Temple's avatar Jamie Temple
Browse files

fix: graph are not drawn

parent da60f695
Branches
No related tags found
1 merge request!1feat: base project
......@@ -121,6 +121,10 @@ class CurveHelperBernstein implements PipelineObserver, PipelineRenderable, Pipe
new THREE.MeshBasicMaterial({ color: 0xffffff, opacity: 0.5, transparent: true }));
this._background.position.z = offset;
// initialize here to avoid null reference => does not show in inspector
this.initGraphs();
this.initPoints();
this._group = new THREE.Group();
this._group.add(this._background);
this._group.add(this._xAxis.object());
......@@ -133,9 +137,6 @@ class CurveHelperBernstein implements PipelineObserver, PipelineRenderable, Pipe
this._yAxis._object3d.parent = this._background;
this._graphs.forEach((graph) => { graph._object3d.parent = this._background; });
this._point.forEach((point) => { point._object3d.parent = this._background; });
this.initGraphs();
this.initPoints();
}
private initGraphs(): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment