Skip to content

Commit

Permalink
added test plans for multitexture, contour-lines and cutout geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Feb 8, 2024
1 parent d70ca82 commit ebc7600
Show file tree
Hide file tree
Showing 23 changed files with 17,127 additions and 2 deletions.
24 changes: 24 additions & 0 deletions docs/tests/contourLines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Layered OPCs

Goal: [Countour lines](../Contour-Lines.md) can be mapped onto secondary textures of [multilayer opcs](../Feature-Multitexture.md). Contour distance can be specified, the lines should appear as anti-aliased lines given a line width.

Dependent tests: [layers](./layers.md)

Approach:
- import of OPC data
- changing visualization properties to use secondary texture
- apply contour line onto secondary texture
- save/load of scenes and check whether all properties are restored properly

Out-of-scope:
- Multitextured OBJs

Data needed: OPC with layers, e.g. Dimorphos, HeraV3.

Steps:
- [ ] run the [layers](./layers.md) test
- [ ] Check whether counturs tab in the surface window appears
![](./images/contours1.png)
- [ ] For eleveation as layer, choose distance/width/border accordingly:
![](./images/contours2.png)
Note: Lines should be crisp and anti-aliased. In the current screenshot above those are not. When we get higher-resolution layer this image will be updated.
35 changes: 35 additions & 0 deletions docs/tests/cutoutGeometry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Cutout geometry

Goal: Perform annotations on a [multilayer](../Feature-Multitexture.md) opc and export cut-out geometry described by the annotation.

Dependent tests: [layers](./layers.md)

Approach:
- import of OPC data
- perform an annotation
- use vscode nodebook to run a demo [notebook](../../notebooks/CutoutDemo.ipynb) to create an obj of the cutout geometry

Prerequisited:
- vscode with: ionide & polyglot notebook extension

Out-of-scope:
- Multitextured OBJs

Data needed: OPC with layers, e.g. Dimorphos, HeraV3.

Steps:
- [ ] start PRo3D with the the pro3d api enabled using the command line flag (`--remoteApi `) or the predefined launch profile
![](./images/cutout1.png)
- [ ] run the [layers](./layers.md) test
- [ ] open vscode in PRo3D root/notebooks and open the [cutout notebook](../../notebooks/CutoutDemo.ipynb).
![](./images/cutout2.png)
- [ ] run the first cell and check the result (should be a green tickbox)
![](./images/cutout3.png)
- [ ] create a annotation which forms a convex polygon
![](./images/cutout4.png)
![](./images/cutout5.png)
- [ ] run the next cell in the notebook. First it should print the ID of the annotation created:
![](./images/cutout6.png)
- [ ] next it should print filtered vertices. Next check the result.obj - does it contain geometry representing the cotout, colored with elevation values:
![](./images/cutout7.png)
![](./images/cutout8.png)
Binary file added docs/tests/images/contours1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/contours2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/cutout8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers4_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/images/layers5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/tests/layers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Layered OPCs

Goal: OPCs with multiple texture layers can be visualized, its pixel information can be blended and mapped using a transfer function. The (surface) properties can be saved and reloaded from scene files.

Approach:
- import of OPC data
- changing visualization properties
- save/load of scenes containing layered opcs

Out-of-scope:
- Multitextured OBJs

Data needed: OPC with layers, e.g. Dimorphos, HeraV3.

Test needs to be done manually, by importing multilayer opcs:
- [ ] Import OPC, surface gets visible
![](./images/layers1.png)
![](./images/layers2.png)
- [ ] Select Surface, surface properties get visible
![](./images/layers3.png)
- [ ] Change visualization properties, change properties and check result visually
* check whether *all* layers are available as primary texture

![](./images/layers4.png)
Check whether they match the layers in opcx.json file:

![](./images/layers4_1.png)
* perform blending, choose a color map and check wether two layers can be visualizated properly

![](./images/layers5.png)
- [ ] Save the scene
- [ ] Check whether the visualization properties appear as tested befor saving.
File renamed without changes.
File renamed without changes.
17,030 changes: 17,030 additions & 0 deletions notebooks/result.obj

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/PRo3D.Viewer/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
"profiles": {
"PRo3D.Viewer": {
"commandName": "Project",
"commandLineArgs": "",
"nativeDebugging": true
},
"PRo3D.Viewer.Provex": {
"PRo3D.Viewer.Provex": {
"commandName": "Project",
"commandLineArgs": "--disableCors --port 4321 --remoteApi --enableProvenance",
"nativeDebugging": true
},
"PRo3D.RemoteApi": {
"commandName": "Project",
"commandLineArgs": "--disableCors --port 4321 --remoteApi",
"nativeDebugging": true
}
}
}

0 comments on commit ebc7600

Please sign in to comment.