# \#viewing

**URL:** https://forum.techsoft3d.com/tag/viewing/33.md

[Latest](https://forum.techsoft3d.com/latest.md) · [Categories](https://forum.techsoft3d.com/categories.md) · [Tags](https://forum.techsoft3d.com/tags.md)

---

## [Sample Code: Set exact world fit with no gaps](https://forum.techsoft3d.com/t/sample-code-set-exact-world-fit-with-no-gaps/1409)

<div class="topic-metadata">

**Author:** [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 4:00am UTC](https://forum.techsoft3d.com/t/sample-code-set-exact-world-fit-with-no-gaps/1409 "2022-05-17T04:00:00Z")

</div>

Version: HPS 2020 Language: C# Description: This sample code behaves similarly to View::FitWorld(), but it does not include gaps. void SetExactWorldFit(Canvas \_canvas) { HPS::SegmentKey viewKey = \_canvas.GetFrontVie…

---

## [How to: Change orientation of Model/Navigation Cube](https://forum.techsoft3d.com/t/how-to-change-orientation-of-model-navigation-cube/1405)

<div class="topic-metadata">

**Author:** [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-change-orientation-of-model-navigation-cube/1405 "2021-10-15T04:00:00Z")

</div>

You can customize the orientation by specifying a front and an up vector for the model using HPS::Model::SetOrientation. The navigation cube orients along the model orientation. https://docs.techsoft3d.com/hps/latest/ap…
