Skip to content

Commit 4be5438

Browse files
cleanup
1 parent 655a3ab commit 4be5438

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/opengeodeweb_viewer/rpc/mesh/points/points_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ def setMeshPointsVertexAttribute(self, params):
4545
validate_schema(params, self.mesh_points_schemas_dict["vertex_attribute"])
4646
id = str(params["id"])
4747
name = str(params["name"])
48-
self.setMeshVertexAttribute(id, name)
48+
self.displayAttributeOnVertices(id, name)
4949

src/opengeodeweb_viewer/rpc/mesh/polyhedrons/polyhedrons_protocols.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ def setMeshPolyhedronsVisibility(self, params):
2727
def setMeshPolyhedronsColor(self, params):
2828
print(self.mesh_polyhedrons_prefix + self.mesh_polyhedrons_schemas_dict["color"]["rpc"], f"{params=}", flush=True)
2929
validate_schema(params, self.mesh_polyhedrons_schemas_dict["color"])
30-
print("id", params["id"], flush=True)
3130
id = params["id"]
32-
print("color", params["color"], flush=True)
3331
red, green, blue = params["color"]["r"], params["color"]["g"], params["color"]["b"]
3432
self.SetColor(id, red, green, blue)
3533

@@ -39,13 +37,13 @@ def setMeshPolyhedronsVertexAttribute(self, params):
3937
validate_schema(params, self.mesh_polyhedrons_schemas_dict["vertex_attribute"])
4038
id = params["id"]
4139
name = str(params["name"])
42-
self.setMeshVertexAttribute(id, name)
40+
self.displayAttributeOnVertices(id, name)
4341

4442
@exportRpc(mesh_polyhedrons_prefix + mesh_polyhedrons_schemas_dict["polyhedron_attribute"]["rpc"])
4543
def setMeshPolyhedronsPolyhedronAttribute(self, params):
4644
print(self.mesh_polyhedrons_prefix + self.mesh_polyhedrons_schemas_dict["vertex_attribute"]["rpc"], f"{params=}", flush=True)
4745
validate_schema(params, self.mesh_polyhedrons_schemas_dict["vertex_attribute"])
4846
id = params["id"]
4947
name = str(params["name"])
50-
self.setMeshPolyhedronAttribute(id, name)
48+
self.displayAttributeOnCells(id, name)
5149

0 commit comments

Comments
 (0)