Skip to content

Commit 1c7895f

Browse files
Merge pull request #54 from Geode-solutions/next
No commit message
2 parents 5494a29 + cd458f0 commit 1c7895f

38 files changed

+145
-54
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# CHANGELOG
22

33

4+
## v1.4.0-rc.2 (2025-03-07)
5+
6+
### Bug Fixes
7+
8+
- **schemas**: All "string" => "minLength": 1
9+
([`279b716`](https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/commit/279b716d6b4b592f046b6417ad868cc8feb08d0f))
10+
11+
- **typo**: Elements => items
12+
([`9241680`](https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/commit/9241680ebb1e2cb8189fc5503d1ba1462b2be749))
13+
14+
15+
## v1.4.0-rc.1 (2025-02-26)
16+
17+
### Features
18+
19+
- **meshes**: Export texture rpc & tests
20+
([`f65b061`](https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/commit/f65b061eca647458d3333a1a07730857d815daf2))
21+
22+
423
## v1.3.1 (2025-02-19)
524

625

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "OpenGeodeWeb-Viewer"
8-
version = "1.3.1"
8+
version = "1.4.0-rc.2"
99
dynamic = ["dependencies"]
1010
authors = [
1111
{ name="Geode-solutions", email="[email protected]" },

src/opengeodeweb_viewer/rpc/generic/schemas/deregister.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
"properties": {
55
"viewer_object": {
66
"type": "string",
7-
"enum": ["mesh", "model"]
7+
"minLength": 1,
8+
"enum": [
9+
"mesh",
10+
"model"
11+
]
812
},
913
"id": {
10-
"type": "string"
14+
"type": "string",
15+
"minLength": 1
1116
}
1217
},
1318
"required": [

src/opengeodeweb_viewer/rpc/generic/schemas/register.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
"properties": {
55
"viewer_object": {
66
"type": "string",
7-
"enum": ["mesh", "model"]
7+
"minLength": 1,
8+
"enum": [
9+
"mesh",
10+
"model"
11+
]
812
},
913
"id": {
10-
"type": "string"
14+
"type": "string",
15+
"minLength": 1
1116
},
1217
"file_name": {
13-
"type": "string"
18+
"type": "string",
19+
"minLength": 1
1420
}
1521
},
1622
"required": [

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"color": {
910
"type": "object",

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"size": {
910
"type": "integer"

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"name": {
9-
"type": "string"
10+
"type": "string",
11+
"minLength": 1
1012
}
1113
},
1214
"required": [

src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"visibility": {
910
"type": "boolean"

src/opengeodeweb_viewer/rpc/mesh/mesh_protocols.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ def setMeshColor(self, params):
6262
red, green, blue = params["color"]["r"], params["color"]["g"], params["color"]["b"]
6363
self.SetColor(id, red, green, blue)
6464

65+
66+
@exportRpc(mesh_prefix + mesh_schemas_dict["apply_textures"]["rpc"])
67+
def meshApplyTextures(self, params):
68+
print(self.mesh_prefix + self.mesh_schemas_dict["apply_textures"]["rpc"], f"{params=}", flush=True)
69+
validate_schema(params, self.mesh_schemas_dict["apply_textures"])
70+
id = params["id"]
71+
textures = params["textures"]
72+
self.applyTextures(id, textures)
73+
74+
6575
def displayAttributeOnVertices(self, id, name):
6676
reader = self.get_object(id)["reader"]
6777
points = reader.GetOutput().GetPointData()

src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"id": {
6-
"type": "string"
6+
"type": "string",
7+
"minLength": 1
78
},
89
"color": {
910
"type": "object",

0 commit comments

Comments
 (0)