Skip to content

Commit

Permalink
Remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Waguramu committed Sep 5, 2024
1 parent 9bffefa commit c86ec80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion erdblick_app/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import {FeatureSearchService} from "./feature.search.service";
import {ClipboardService} from "./clipboard.service";
import {MultiSelectModule} from "primeng/multiselect";
import {ButtonGroupModule} from "primeng/buttongroup";
import {TabViewModule} from "primeng/tabview";
import {BreadcrumbModule} from "primeng/breadcrumb";
import {TableModule} from "primeng/table";
import {HighlightSearch} from "./highlight.pipe";
Expand Down
15 changes: 0 additions & 15 deletions erdblick_app/app/view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,6 @@ export class ErdblickViewComponent implements AfterViewInit {

this.inspectionService.originAndNormalForFeatureZoom.subscribe(values => {
const [origin, normal] = values;
// this.viewer.entities.add({
// position: origin,
// point: {
// pixelSize: 10,
// color: Color.BLUE
// }
// });
const direction = Cartesian3.subtract(normal, new Cartesian3(), new Cartesian3());
const endPoint = Cartesian3.add(origin, direction, new Cartesian3());
Cartesian3.normalize(direction, direction);
Expand All @@ -263,14 +256,6 @@ export class ErdblickViewComponent implements AfterViewInit {
Cartesian3.normalize(right, right);
const cameraUp = Cartesian3.cross(right, direction, new Cartesian3());
Cartesian3.normalize(cameraUp, cameraUp);
// this.viewer.entities.add({
// position: endPoint,
// point: {
// pixelSize: 10,
// color: Color.RED
// }
// });
this.viewer.camera.flyToBoundingSphere(new BoundingSphere(origin, radius));
this.viewer.camera.flyTo({
destination: endPoint,
orientation: {
Expand Down

0 comments on commit c86ec80

Please sign in to comment.