-
Notifications
You must be signed in to change notification settings - Fork 0
new data pointSet & edgedCurve #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7dfbd0a
new data pointSet & edgedCurve
JulienChampagnol 0908195
test points
JulienChampagnol 409cfae
fix(edges & points): color & visibility on actor
JulienChampagnol e2fe4e5
Apply prepare changes
JulienChampagnol ea0e0ee
revert try catch
JulienChampagnol eaac12f
revert try catch
JulienChampagnol 36d9ca4
Merge branch 'fix/points_and_edges_visibility' of https://github.com/…
JulienChampagnol 87e735a
pr comments
JulienChampagnol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "rpc": "size", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| }, | ||
| "width": { | ||
| "type": "number" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "id", | ||
| "width" | ||
| ], | ||
| "additionalProperties": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0"?> | ||
| <VTKFile type="PolyData" version="1.0" byte_order="LittleEndian" header_type="UInt32" compressor="vtkZLibDataCompressor"> | ||
| <PolyData> | ||
| <Piece NumberOfPoints="4" NumberOfLines="4"> | ||
| <PointData> | ||
| <DataArray type="Float64" Name="points" format="ascii" NumberOfComponents="3" RangeMin="0.100000001" RangeMax="9.39999962">0.1 0.2 0.3 2.1 9.4 6.7 7.5 5.2 6.3 8.7 1.4 4.7 </DataArray> | ||
| </PointData> | ||
| <Points> | ||
| <DataArray type="Float64" Name="Points" format="ascii" NumberOfComponents="3" RangeMin="0.10000000000000001" RangeMax="9.4000000000000004">0.1 0.2 0.3 2.1 9.4 6.7 7.5 5.2 6.3 8.7 1.4 4.7 </DataArray> | ||
| </Points> | ||
| <CellData> | ||
| <DataArray type="Float64" Name="edges" format="ascii" NumberOfComponents="2" RangeMin="0" RangeMax="3">0 1 0 2 3 2 1 2 </DataArray> | ||
| </CellData> | ||
| <Lines> | ||
| <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" RangeMax="3">0 1 0 2 3 2 1 2 </DataArray> | ||
| <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="0" RangeMax="4">2 4 6 8 </DataArray> | ||
| </Lines> | ||
| </Piece> | ||
| </PolyData> | ||
| </VTKFile> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0"?> | ||
| <VTKFile type="PolyData" version="1.0" byte_order="LittleEndian" header_type="UInt32" compressor="vtkZLibDataCompressor"> | ||
| <PolyData> | ||
| <Piece NumberOfPoints="24" NumberOfVerts="24"> | ||
| <PointData> | ||
| <DataArray type="Float64" Name="geode_implicit_value" format="ascii" NumberOfComponents="1" RangeMin="0" RangeMax="1">0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 </DataArray> | ||
| <DataArray type="Float64" Name="points" format="ascii" NumberOfComponents="3" RangeMin="0.5" RangeMax="39.0999985">0.5 1 2 20 2 12 1.5 19 12.3 39.1 1.5 7 1.5 39.1 8.5 37.5 38.2 11.1 17.8 35.5 15 13.9 15.1 17 25.9 14 17.5 22 25 25 15 29 20 27 28 22 1 0.5 21 19 1.5 27 1.3 17 29.5 38.7 2.1 25 1.2 37.8 30 38.1 37.7 26.8 17.5 36.2 31 14.2 14.9 29.5 26.5 15 29.5 21.2 23.4 35.5 14.5 28.7 33 26.3 25.7 34 </DataArray> | ||
| <DataArray type="Float64" Name="geode_implicit_weight" format="ascii" NumberOfComponents="1" RangeMin="10" RangeMax="10">10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 </DataArray> | ||
| </PointData> | ||
| <Points> | ||
| <DataArray type="Float64" Name="Points" format="ascii" NumberOfComponents="3" RangeMin="0.5" RangeMax="39.100000000000001">0.5 1 2 20 2 12 1.5 19 12.3 39.1 1.5 7 1.5 39.1 8.5 37.5 38.2 11.1 17.8 35.5 15 13.9 15.1 17 25.9 14 17.5 22 25 25 15 29 20 27 28 22 1 0.5 21 19 1.5 27 1.3 17 29.5 38.7 2.1 25 1.2 37.8 30 38.1 37.7 26.8 17.5 36.2 31 14.2 14.9 29.5 26.5 15 29.5 21.2 23.4 35.5 14.5 28.7 33 26.3 25.7 34 </DataArray> | ||
| </Points> | ||
| <Verts> | ||
| <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" RangeMax="23">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 </DataArray> | ||
| <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="0" RangeMax="24">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 </DataArray> | ||
| </Verts> | ||
| </Piece> | ||
| </PolyData> | ||
| </VTKFile> |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Standard library imports | ||
|
|
||
| # Third party imports | ||
| from src.opengeodeweb_viewer.rpc.mesh.mesh_protocols import VtkMeshView | ||
| from src.opengeodeweb_viewer.rpc.mesh.edges.mesh_edges_protocols import VtkMeshEdgesView | ||
|
|
||
| # Local application imports | ||
| from src.tests.mesh.test_mesh_protocols import test_register_mesh | ||
|
|
||
|
|
||
| def test_edges_visibility(server): | ||
|
|
||
| test_register_mesh(server) | ||
|
|
||
| server.call( | ||
| VtkMeshEdgesView.mesh_edges_prefix | ||
| + VtkMeshEdgesView.mesh_edges_schemas_dict["visibility"]["rpc"], | ||
| [{"id": "123456789", "visibility": True}], | ||
| ) | ||
| assert server.compare_image(3, "mesh/edges/visibility.jpeg") == True | ||
|
|
||
|
|
||
| def test_edges_color(server): | ||
|
|
||
| test_edges_visibility(server) | ||
|
|
||
| server.call( | ||
| VtkMeshEdgesView.mesh_edges_prefix | ||
| + VtkMeshEdgesView.mesh_edges_schemas_dict["color"]["rpc"], | ||
| [{"id": "123456789", "color": {"r": 255, "g": 0, "b": 0}}], | ||
| ) | ||
| assert server.compare_image(3, "mesh/edges/color.jpeg") == True | ||
|
|
||
|
|
||
| def test_edges_with_edged_curve(server): | ||
|
|
||
| server.call( | ||
| VtkMeshView.mesh_prefix + VtkMeshView.mesh_schemas_dict["register"]["rpc"], | ||
| [{"id": "123456789", "file_name": "edged_curve.vtp"}], | ||
| ) | ||
| assert server.compare_image(3, "mesh/edges/register_edged_curve.jpeg") == True | ||
|
|
||
| server.call( | ||
| VtkMeshEdgesView.mesh_edges_prefix | ||
| + VtkMeshEdgesView.mesh_edges_schemas_dict["color"]["rpc"], | ||
| [{"id": "123456789", "color": {"r": 255, "g": 0, "b": 0}}], | ||
| ) | ||
| assert server.compare_image(3, "mesh/edges/edged_curve_color.jpeg") == True | ||
|
|
||
| server.call( | ||
| VtkMeshEdgesView.mesh_edges_prefix | ||
| + VtkMeshEdgesView.mesh_edges_schemas_dict["visibility"]["rpc"], | ||
| [{"id": "123456789", "visibility": False}], | ||
| ) | ||
| assert server.compare_image(3, "mesh/edges/edged_curve_visibility.jpeg") == True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.