Skip to content

Commit

Permalink
fix: Clearing Clusters (#353)
Browse files Browse the repository at this point in the history
* Fix : Moving setupEvents to Contructor + Camera zoomToCursor

* feat: Cluster Management + Initial KP Labels

* Unclustering of labels + managing overlapping labels

* Start and End KPs

* Constant KPs at Fixed Intervals

* Fix: Clearing Clusters
  • Loading branch information
aka-blackboots authored Apr 9, 2024
1 parent 7538c4d commit ff322f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/openbim-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -121039,6 +121039,7 @@ class RoadNavigator extends Component {
const dom = this.scene.uiElement.get("container").domElement;
const intersects = this.highlighter.castRay(event, this.scene.camera, dom, this._curveMeshes);
if (intersects) {
this.clearKPStations();
const result = intersects;
const mesh = result.object;
this.highlighter.select(mesh);
Expand Down
2 changes: 2 additions & 0 deletions src/civil/RoadNavigator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ export abstract class RoadNavigator extends Component<any> {
);

if (intersects) {
this.clearKPStations();

const result = intersects;
const mesh = result.object as FRAGS.CurveMesh;
this.highlighter.select(mesh);
Expand Down

0 comments on commit ff322f8

Please sign in to comment.