diff --git a/src/ansys/api/acp/v0/array_types.proto b/src/ansys/api/acp/v0/array_types.proto index 4357e92..7bf9b3c 100644 --- a/src/ansys/api/acp/v0/array_types.proto +++ b/src/ansys/api/acp/v0/array_types.proto @@ -10,3 +10,8 @@ message IntArray { repeated int64 data = 1 [packed=true]; repeated int64 shape = 2 [packed=true]; } + +message Int32Array { + repeated int32 data = 1 [packed=true]; + repeated int64 shape = 2 [packed=true]; +} diff --git a/src/ansys/api/acp/v0/mesh_query.proto b/src/ansys/api/acp/v0/mesh_query.proto new file mode 100644 index 0000000..c9191d7 --- /dev/null +++ b/src/ansys/api/acp/v0/mesh_query.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; +package ansys.api.acp.v0.mesh_query; + +import "ansys/api/acp/v0/base.proto"; +import "ansys/api/acp/v0/array_types.proto"; + +message Mesh { + array_types.DoubleArray nodes = 1; + array_types.Int32Array element_nodes = 2; + array_types.Int32Array element_nodes_offsets = 3; + array_types.Int32Array element_types = 4; +} + +service ObjectService { + // GetRequest should contain the model resource_path. + rpc GetMesh (base.GetRequest) returns (Mesh); +}